Bug 1035470: Use signature algorithm OID instead of digest algorithm OID in the signature field of certificates in mozilla::pkix tests, r=cviecco

--HG--
extra : rebase_source : 99b1d5c0739221e90d4b04738f9362135f42a23c
This commit is contained in:
Brian Smith 2014-07-07 00:46:10 -07:00
parent 98b54468ba
commit 8d65effbf6
2 changed files with 8 additions and 8 deletions

View File

@ -63,13 +63,12 @@ CreateCert(PLArenaPool* arena, const char* issuerStr,
}
}
SECItem* certDER(CreateEncodedCertificate(arena, v3, SEC_OID_SHA256,
serialNumber, issuerDER,
PR_Now() - ONE_DAY,
PR_Now() + ONE_DAY,
subjectDER, extensions,
issuerKey, SEC_OID_SHA256,
subjectKey));
SECItem* certDER(CreateEncodedCertificate(
arena, v3, SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION,
serialNumber, issuerDER,
PR_Now() - ONE_DAY, PR_Now() + ONE_DAY,
subjectDER, extensions, issuerKey, SEC_OID_SHA256,
subjectKey));
if (!certDER) {
return false;
}

View File

@ -51,7 +51,8 @@ CreateCert(PLArenaPool* arena, const char* subjectStr,
return nullptr;
}
return CreateEncodedCertificate(arena, v3, SEC_OID_SHA256,
return CreateEncodedCertificate(arena, v3,
SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION,
serialNumber, issuerDER,
PR_Now() - ONE_DAY,
PR_Now() + ONE_DAY,