summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-11-22 12:12:58 +0000
committerMichael Meeks <michael.meeks@novell.com>2010-11-22 12:12:58 +0000
commitd58c6e0517d14fb461b4089f4b6ae62c9ea9b26d (patch)
tree8e2714439161658e593b4410fee82e6d2977279f /xmlsecurity
parentf3eb77586e067a46211334a78987652815f47744 (diff)
cleanup floating comments
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx22
1 files changed, 2 insertions, 20 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index 187cbd34c8d6..0673a2bb8a2e 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -576,32 +576,14 @@ Reference< XCertificate > SecurityEnvironment_NssImpl :: getCertificate( const O
if( arena == NULL )
throw RuntimeException() ;
- /*
- * mmi : because MS Crypto use the 'S' tag (equal to the 'ST' tag in NSS), but the NSS can't recognise
- * it, so the 'S' tag should be changed to 'ST' tag
- *
- * PS : it can work, but inside libxmlsec, the 'S' tag is till used to find cert in NSS engine, so it
- * is not useful at all. (comment out now)
- */
-
- /* end */
-
- //Create cert info from issue and serial
+ // Create cert info from issue and serial
rtl::OString ostr = rtl::OUStringToOString( issuerName , RTL_TEXTENCODING_UTF8 ) ;
chIssuer = PL_strndup( ( char* )ostr.getStr(), ( int )ostr.getLength() ) ;
nmIssuer = CERT_AsciiToName( chIssuer ) ;
if( nmIssuer == NULL ) {
PL_strfree( chIssuer ) ;
PORT_FreeArena( arena, PR_FALSE ) ;
-
- /*
- * i40394
- *
- * mmi : no need to throw exception
- * just return "no found"
- */
- //throw RuntimeException() ;
- return NULL;
+ return NULL; // no need for exception cf. i40394
}
derIssuer = SEC_ASN1EncodeItem( arena, NULL, ( void* )nmIssuer, SEC_ASN1_GET( CERT_NameTemplate ) ) ;