mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 405139, EV certs should be treated as providing less certainty of identity if OCSP is disabled. r=rrelyea, a1.9=mtschrep
This commit is contained in:
parent
723e7f78f7
commit
a2a4a72d69
@ -568,6 +568,15 @@ nsNSSCertificate::hasValidEVOidTag(SECOidTag &resultOidTag, PRBool &validEV)
|
||||
validEV = PR_FALSE;
|
||||
resultOidTag = SEC_OID_UNKNOWN;
|
||||
|
||||
PRBool isOCSPEnabled = PR_FALSE;
|
||||
nsCOMPtr<nsIX509CertDB> certdb;
|
||||
certdb = do_GetService(NS_X509CERTDB_CONTRACTID);
|
||||
if (certdb)
|
||||
certdb->GetIsOcspOn(&isOCSPEnabled);
|
||||
// No OCSP, no EV
|
||||
if (!isOCSPEnabled)
|
||||
return NS_OK;
|
||||
|
||||
SECOidTag oid_tag;
|
||||
SECStatus rv = getFirstEVPolicy(mCert, oid_tag);
|
||||
if (rv != SECSuccess)
|
||||
|
Loading…
Reference in New Issue
Block a user