mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
98b54468ba
commit
8d65effbf6
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user