From cb83dca227b5f2738ef20f66989e5d6708901117 Mon Sep 17 00:00:00 2001 From: Joachim Lingner Date: Fri, 13 Nov 2009 13:51:33 +0100 Subject: jl137: #i103420# fixed windows certificate verfification regarding revocation --- xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx') diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index cf07edb7023e..eb89b3a82f11 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -638,15 +638,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox() sal_Int32 certResult = xSecEnv->verifyCertificate(xCert, Sequence >()); - //These errors are alloweds - sal_Int32 validErrors = css::security::CertificateValidity::VALID - | css::security::CertificateValidity::UNKNOWN_REVOKATION; - - //Build a mask to filter out the allowed errors - sal_Int32 mask = ~validErrors; - // "subtract" the allowed error flags from the result - sal_Int32 errors = certResult & mask; - bCertValid = errors > 0 ? false : true; + bCertValid = certResult == css::security::CertificateValidity::VALID ? true : false; if ( bCertValid ) nValidCerts++; -- cgit