mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
Add 2 additional OIDs to the list of acceptable digestEncryptionAlgIDs,
per RFC 3370. r=thayes. Bug 230761.
This commit is contained in:
parent
49152980bd
commit
65088fd320
@ -34,7 +34,7 @@
|
||||
/*
|
||||
* CMS signerInfo methods.
|
||||
*
|
||||
* $Id: cmssiginfo.c,v 1.24 2004/01/07 23:07:23 jpierre%netscape.com Exp $
|
||||
* $Id: cmssiginfo.c,v 1.25 2004/01/14 22:20:44 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include "cmslocal.h"
|
||||
@ -344,6 +344,7 @@ NSS_CMSSignerInfo_Verify(NSSCMSSignerInfo *signerinfo,
|
||||
CERTCertificate *cert;
|
||||
NSSCMSVerificationStatus vs = NSSCMSVS_Unverified;
|
||||
PLArenaPool *poolp;
|
||||
SECOidTag tag;
|
||||
|
||||
if (signerinfo == NULL)
|
||||
return SECFailure;
|
||||
@ -370,10 +371,13 @@ NSS_CMSSignerInfo_Verify(NSSCMSSignerInfo *signerinfo,
|
||||
* and we would Just Work. So this check should just be removed,
|
||||
* but not until the VFY code is better at setting errors.
|
||||
*/
|
||||
switch (SECOID_GetAlgorithmTag(&(signerinfo->digestEncAlg))) {
|
||||
tag = SECOID_GetAlgorithmTag(&(signerinfo->digestEncAlg));
|
||||
switch (tag) {
|
||||
case SEC_OID_PKCS1_RSA_ENCRYPTION:
|
||||
case SEC_OID_ANSIX9_DSA_SIGNATURE:
|
||||
case SEC_OID_ANSIX9_DSA_SIGNATURE_WITH_SHA1_DIGEST:
|
||||
case SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION:
|
||||
case SEC_OID_PKCS1_MD5_WITH_RSA_ENCRYPTION:
|
||||
/* ok */
|
||||
break;
|
||||
case SEC_OID_UNKNOWN:
|
||||
|
Loading…
x
Reference in New Issue
Block a user