mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
moebius#119: (Windows) Security - Certificate Stores - NSSCertDBTrustDomain allows end-entities to be their own trust anchors
https://github.com/MoonchildProductions/moebius/pull/119
This commit is contained in:
parent
9db39c42c0
commit
b9ed9af662
3 changed files with 31 additions and 6 deletions
|
|
@ -245,7 +245,11 @@ NSSCertDBTrustDomain::GetCertTrust(EndEntityOrCA endEntityOrCA,
|
|||
// For TRUST, we only use the CERTDB_TRUSTED_CA bit, because Goanna hasn't
|
||||
// needed to consider end-entity certs to be their own trust anchors since
|
||||
// Goanna implemented nsICertOverrideService.
|
||||
if (flags & CERTDB_TRUSTED_CA) {
|
||||
// Of course, for this to work as expected, we need to make sure we're
|
||||
// inquiring about the trust of a CA and not an end-entity. If an end-entity
|
||||
// has the CERTDB_TRUSTED_CA bit set, Gecko does not consider it to be a
|
||||
// trust anchor; it must inherit its trust.
|
||||
if (flags & CERTDB_TRUSTED_CA && endEntityOrCA == EndEntityOrCA::MustBeCA) {
|
||||
if (policy.IsAnyPolicy()) {
|
||||
trustLevel = TrustLevel::TrustAnchor;
|
||||
return Success;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue