summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
index 1849e7d3bc22..227c34d78d64 100644
--- a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
+++ b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx
@@ -364,9 +364,7 @@ SAL_CALL XMLSignature_GpgImpl::validate(
data_signature, data_text);
// TODO: needs some more error handling, needs checking _all_ signatures
- if( verify_res.isNull() ||
- verify_res.numSignatures() == 0 ||
- verify_res.signature(0).validity() < GpgME::Signature::Full )
+ if( verify_res.isNull() || verify_res.numSignatures() == 0 )
{
// let's try again, but this time import the public key payload
// (avoiding that in a first cut for being a bit speedier)
@@ -415,9 +413,7 @@ SAL_CALL XMLSignature_GpgImpl::validate(
verify_res=rCtx.verifyDetachedSignature(data_signature, data_text);
// TODO: needs some more error handling, needs checking _all_ signatures
- if( verify_res.isNull() ||
- verify_res.numSignatures() == 0 ||
- verify_res.signature(0).validity() < GpgME::Signature::Full )
+ if( verify_res.isNull() || verify_res.numSignatures() == 0 )
{
clearErrorRecorder();
xmlFree(pSignatureValue);