summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMichael Mi <mmi@openoffice.org>2004-08-05 05:36:33 +0000
committerMichael Mi <mmi@openoffice.org>2004-08-05 05:36:33 +0000
commit9fbd13baf86c474420bc20863aff1a638bbf7625 (patch)
treedaf0b09c58ecbbea9b6b18483807fb492203c786 /xmlsecurity
parentf8f7b753d9bf883e0d72bd2af55bf3b591ee394d (diff)
Issue number:
Submitted by: Andrew Fan Reviewed by: Fix a compare bug of getCertificateCharacters
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index 6ec45f04c846..b42c634b3157 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.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: mmi $ $Date: 2004-08-02 03:32:02 $
+ * last change: $Author: mmi $ $Date: 2004-08-05 06:36:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -808,7 +808,7 @@ sal_Int32 SecurityEnvironment_NssImpl :: getCertificateCharacters( const ::com::
characters = 0x00000000 ;
//Firstly, make sentence whether or not the cert is self-signed.
- if( SECITEM_CompareItem( &(cert->derIssuer), &(cert->derSubject) ) ) {
+ if( SECITEM_CompareItem( &(cert->derIssuer), &(cert->derSubject) ) == SECEqual ) {
characters |= ::com::sun::star::security::CertificateCharacters::CERT_CHARACTER_SELF_SIGNED ;
} else {
characters &= ~ ::com::sun::star::security::CertificateCharacters::CERT_CHARACTER_SELF_SIGNED ;