mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1077864, Part 2: Override the trust level for OCSP response signer certs so that they are never considered trust anchors, r=keeler
This commit is contained in:
parent
8aa85cf009
commit
a44a7d430b
@ -796,6 +796,16 @@ CheckIssuerIndependentProperties(TrustDomain& trustDomain,
|
||||
return rv;
|
||||
}
|
||||
|
||||
if (trustLevel == TrustLevel::TrustAnchor &&
|
||||
endEntityOrCA == EndEntityOrCA::MustBeEndEntity &&
|
||||
requiredEKUIfPresent == KeyPurposeId::id_kp_OCSPSigning) {
|
||||
// OCSP signer certificates can never be trust anchors, especially
|
||||
// since we don't support designated OCSP responders. All of the checks
|
||||
// below that are dependent on trustLevel rely on this overriding of the
|
||||
// trust level for OCSP signers.
|
||||
trustLevel = TrustLevel::InheritsTrust;
|
||||
}
|
||||
|
||||
switch (trustLevel) {
|
||||
case TrustLevel::InheritsTrust:
|
||||
rv = CheckSignatureAlgorithm(cert.GetSignedData().algorithm,
|
||||
|
Loading…
Reference in New Issue
Block a user