Lines Matching refs:certificate
21 // for a certificate whose trust status has been changed by the
25 // Creates a new TrustEntry by incrementing the reference to |certificate|
27 TrustEntry(CERTCertificate* certificate, const CERTCertTrust& trust);
30 CERTCertificate* certificate() const { return certificate_; }
34 // The temporary root certificate.
44 TestRootCerts::TrustEntry::TrustEntry(CERTCertificate* certificate,
46 : certificate_(CERT_DupCertificate(certificate)),
54 bool TestRootCerts::Add(X509Certificate* certificate) {
56 x509_util_ios::NSSCertificate nss_certificate(certificate->os_cert_handle());
59 CERTCertificate* cert_handle = certificate->os_cert_handle();
62 // the certificate is removed.
66 // CERT_GetCertTrust will fail if the certificate does not have any
69 // cause the trust settings to be revoked. If the certificate has no
70 // particular trust settings associated with it, mark the certificate as
71 // a valid CA certificate with no specific trust.
75 // Change the trust bits to unconditionally trust this certificate.
79 LOG(ERROR) << "Cannot decode certificate trust string.";
85 LOG(ERROR) << "Cannot change certificate trust.";
94 // Restore the certificate trusts to what they were originally, before
95 // Add() was called. Work from the rear first, since if a certificate was
103 (*it)->certificate(),
108 DCHECK_EQ(SECSuccess, rv) << "Cannot restore certificate trust.";
121 if (X509Certificate::IsSameOSCert(cert, (*it)->certificate()))