summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMichael Mi <mmi@openoffice.org>2004-08-02 02:32:02 +0000
committerMichael Mi <mmi@openoffice.org>2004-08-02 02:32:02 +0000
commitc1f8875f33697516efa24853dc965f6269f987c4 (patch)
treed18df6dc8ad988a4e620bf9b8edd3d934be8413c /xmlsecurity
parent42fab08cbe828a8312580833aaa6cde9052f14c9 (diff)
Issue number:
Submitted by: Andrew Fan Reviewed by: Adjust CertificateValidity interfaces.
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx6
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index 2acac2e3a155..de25799d84b8 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: securityenvironment_mscryptimpl.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: mt $ $Date: 2004-07-26 07:29:33 $
+ * last change: $Author: mmi $ $Date: 2004-08-02 03:32:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1045,7 +1045,7 @@ sal_Int32 SecurityEnvironment_MSCryptImpl :: verifyCertificate( const ::com::sun
CertFreeCertificateChain( pChainContext ) ;
if( chainStatus == CERT_TRUST_NO_ERROR ) {
- validity = ::com::sun::star::security::CertificateValidity::CERT_VALIDITY_VALID ;
+ validity = !( ::com::sun::star::security::CertificateValidity::CERT_VALIDITY_INVALID ) ;
} else {
validity = ::com::sun::star::security::CertificateValidity::CERT_VALIDITY_INVALID ;
}
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index 2e26292fe161..6ec45f04c846 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: securityenvironment_nssimpl.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: mt $ $Date: 2004-07-26 07:29:33 $
+ * last change: $Author: mmi $ $Date: 2004-08-02 03:32:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -742,7 +742,7 @@ sal_Int32 SecurityEnvironment_NssImpl :: verifyCertificate( const ::com::sun::st
}
if( status == SECSuccess ) {
- validity = ::com::sun::star::security::CertificateValidity::CERT_VALIDITY_VALID ;
+ validity = 0x00000000 ;
} else {
validity = ::com::sun::star::security::CertificateValidity::CERT_VALIDITY_INVALID ;
switch( status ) {