Home | History | Annotate | Download | only in base

Lines Matching refs:certificate

17 // for a certificate whose trust status has been changed by the
21 // Creates a new TrustEntry by incrementing the reference to |certificate|
23 TrustEntry(CERTCertificate* certificate, CERTCertTrust trust);
26 CERTCertificate* certificate() const { return certificate_; }
30 // The temporary root certificate.
40 TestRootCerts::TrustEntry::TrustEntry(CERTCertificate* certificate,
42 : certificate_(CERT_DupCertificate(certificate)),
50 bool TestRootCerts::Add(X509Certificate* certificate) {
52 // the certificate is removed.
54 SECStatus rv = CERT_GetCertTrust(certificate->os_cert_handle(),
57 // CERT_GetCertTrust will fail if the certificate does not have any
60 // cause the trust settings to be revoked. If the certificate has no
61 // particular trust settings associated with it, mark the certificate as
62 // a valid CA certificate with no specific trust.
66 // Change the trust bits to unconditionally trust this certificate.
70 LOG(ERROR) << "Cannot decode certificate trust string.";
75 certificate->os_cert_handle(),
78 LOG(ERROR) << "Cannot change certificate trust.";
82 trust_cache_.push_back(new TrustEntry(certificate->os_cert_handle(),
88 // Restore the certificate trusts to what they were originally, before
89 // Add() was called. Work from the rear first, since if a certificate was
97 (*it)->certificate(),
102 DCHECK_EQ(SECSuccess, rv) << "Cannot restore certificate trust.";