Home
last modified time | relevance | path

Searched refs:cert_status (Results 1 – 25 of 70) sorted by relevance

123

/external/chromium_org/net/cert/
Dcert_status_flags.cc12 bool IsCertStatusMinorError(CertStatus cert_status) { in IsCertStatusMinorError() argument
16 cert_status &= CERT_STATUS_ALL_ERRORS; in IsCertStatusMinorError()
17 return cert_status != 0 && (cert_status & ~kMinorErrors) == 0; in IsCertStatusMinorError()
57 int MapCertStatusToNetError(CertStatus cert_status) { in MapCertStatusToNetError() argument
62 if (cert_status & CERT_STATUS_REVOKED) in MapCertStatusToNetError()
64 if (cert_status & CERT_STATUS_INVALID) in MapCertStatusToNetError()
66 if (cert_status & CERT_STATUS_PINNED_KEY_MISSING) in MapCertStatusToNetError()
70 if (cert_status & CERT_STATUS_AUTHORITY_INVALID) in MapCertStatusToNetError()
72 if (cert_status & CERT_STATUS_COMMON_NAME_INVALID) in MapCertStatusToNetError()
76 if (cert_status & CERT_STATUS_NAME_CONSTRAINT_VIOLATION) in MapCertStatusToNetError()
[all …]
Dcert_verify_proc_win.cc116 CertStatus cert_status = 0; in MapCertChainErrorStatusToCertStatus() local
123 cert_status |= CERT_STATUS_DATE_INVALID; in MapCertChainErrorStatusToCertStatus()
129 cert_status |= CERT_STATUS_AUTHORITY_INVALID; in MapCertChainErrorStatusToCertStatus()
133 cert_status |= CERT_STATUS_NO_REVOCATION_MECHANISM; in MapCertChainErrorStatusToCertStatus()
136 cert_status |= CERT_STATUS_UNABLE_TO_CHECK_REVOCATION; in MapCertChainErrorStatusToCertStatus()
139 cert_status |= CERT_STATUS_REVOKED; in MapCertChainErrorStatusToCertStatus()
145 cert_status |= CERT_STATUS_INVALID; in MapCertChainErrorStatusToCertStatus()
157 cert_status |= CERT_STATUS_WEAK_KEY; in MapCertChainErrorStatusToCertStatus()
159 cert_status |= CERT_STATUS_INVALID; in MapCertChainErrorStatusToCertStatus()
178 cert_status |= CERT_STATUS_INVALID; in MapCertChainErrorStatusToCertStatus()
[all …]
Dcert_verify_proc_mac.cc567 verify_result->cert_status |= CERT_STATUS_REV_CHECKING_ENABLED; in VerifyInternal()
570 verify_result->cert_status |= CERT_STATUS_REVOKED; in VerifyInternal()
595 verify_result->cert_status |= CERT_STATUS_AUTHORITY_INVALID; in VerifyInternal()
606 verify_result->cert_status |= CertStatusFromOSStatus(cssm_result); in VerifyInternal()
614 verify_result->cert_status |= CERT_STATUS_DATE_INVALID; in VerifyInternal()
615 if (!IsCertStatusError(verify_result->cert_status) && in VerifyInternal()
645 verify_result->cert_status |= mapped_status; in VerifyInternal()
651 verify_result->cert_status |= CertStatusFromOSStatus(cssm_result); in VerifyInternal()
653 if (!IsCertStatusError(verify_result->cert_status)) { in VerifyInternal()
655 verify_result->cert_status |= CERT_STATUS_INVALID; in VerifyInternal()
[all …]
Dcert_verify_proc_android.cc44 verify_result->cert_status |= CERT_STATUS_AUTHORITY_INVALID; in VerifyFromAndroidTrustManager()
48 verify_result->cert_status |= CERT_STATUS_DATE_INVALID; in VerifyFromAndroidTrustManager()
51 verify_result->cert_status |= CERT_STATUS_INVALID; in VerifyFromAndroidTrustManager()
54 verify_result->cert_status |= CERT_STATUS_INVALID; in VerifyFromAndroidTrustManager()
58 verify_result->cert_status |= CERT_STATUS_INVALID; in VerifyFromAndroidTrustManager()
134 verify_result->cert_status |= CERT_STATUS_COMMON_NAME_INVALID; in VerifyInternal()
144 if (IsCertStatusError(verify_result->cert_status)) in VerifyInternal()
145 return MapCertStatusToNetError(verify_result->cert_status); in VerifyInternal()
Dcert_verify_proc.cc198 verify_result->cert_status |= CERT_STATUS_REVOKED; in Verify()
222 verify_result->cert_status |= CERT_STATUS_REVOKED; in Verify()
223 rv = MapCertStatusToNetError(verify_result->cert_status); in Verify()
232 verify_result->cert_status |= CERT_STATUS_NAME_CONSTRAINT_VIOLATION; in Verify()
233 rv = MapCertStatusToNetError(verify_result->cert_status); in Verify()
241 verify_result->cert_status |= CERT_STATUS_WEAK_KEY; in Verify()
246 rv = MapCertStatusToNetError(verify_result->cert_status); in Verify()
251 verify_result->cert_status |= CERT_STATUS_INVALID; in Verify()
252 rv = MapCertStatusToNetError(verify_result->cert_status); in Verify()
257 verify_result->cert_status |= CERT_STATUS_WEAK_SIGNATURE_ALGORITHM; in Verify()
[all …]
Dcert_verify_proc_openssl.cc197 verify_result->cert_status |= CERT_STATUS_COMMON_NAME_INVALID; in VerifyInternal()
223 CertStatus cert_status = MapCertErrorToCertStatus(x509_error); in VerifyInternal() local
228 << " : " << cert_status; in VerifyInternal()
229 verify_result->cert_status |= cert_status; in VerifyInternal()
234 if (IsCertStatusError(verify_result->cert_status)) in VerifyInternal()
235 return MapCertStatusToNetError(verify_result->cert_status); in VerifyInternal()
Dcert_verify_proc_unittest.cc191 EXPECT_TRUE(verify_result.cert_status & CERT_STATUS_IS_EV); in TEST_F()
226 EXPECT_TRUE(verify_result.cert_status & in TEST_F()
268 EXPECT_EQ(0u, verify_result.cert_status); in TEST_F()
307 EXPECT_TRUE(verify_result.cert_status & CERT_STATUS_IS_EV); in TEST_F()
406 verify_result.cert_status & CERT_STATUS_WEAK_KEY); in TEST_F()
408 verify_result.cert_status & CERT_STATUS_INVALID); in TEST_F()
411 EXPECT_EQ(0U, verify_result.cert_status & CERT_STATUS_WEAK_KEY); in TEST_F()
577 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
613 verify_result.cert_status & CERT_STATUS_NAME_CONSTRAINT_VIOLATION); in TEST_F()
645 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
[all …]
Dtest_root_certs_unittest.cc99 EXPECT_NE(0u, bad_verify_result.cert_status & CERT_STATUS_AUTHORITY_INVALID); in TEST()
116 EXPECT_EQ(0u, good_verify_result.cert_status); in TEST()
133 restored_verify_result.cert_status & CERT_STATUS_AUTHORITY_INVALID); in TEST()
135 EXPECT_EQ(bad_verify_result.cert_status, restored_verify_result.cert_status); in TEST()
Dcert_verify_proc_nss.cc768 verify_result->cert_status |= CERT_STATUS_COMMON_NAME_INVALID; in VerifyInternalImpl()
775 verify_result->cert_status |= CERT_STATUS_DATE_INVALID; in VerifyInternalImpl()
800 verify_result->cert_status |= CERT_STATUS_REV_CHECKING_ENABLED; in VerifyInternalImpl()
825 verify_result->cert_status |= CERT_STATUS_REV_CHECKING_ENABLED; in VerifyInternalImpl()
873 (verify_result->cert_status & CERT_STATUS_DATE_INVALID)) in VerifyInternalImpl()
875 CertStatus cert_status = MapCertErrorToCertStatus(err); in VerifyInternalImpl() local
876 if (cert_status) { in VerifyInternalImpl()
877 verify_result->cert_status |= cert_status; in VerifyInternalImpl()
878 return MapCertStatusToNetError(verify_result->cert_status); in VerifyInternalImpl()
884 if (IsCertStatusError(verify_result->cert_status)) in VerifyInternalImpl()
[all …]
Dcert_status_flags.h35 NET_EXPORT bool IsCertStatusMinorError(CertStatus cert_status);
43 NET_EXPORT int MapCertStatusToNetError(CertStatus cert_status);
Dnss_cert_database_unittest.cc587 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
618 EXPECT_EQ(CERT_STATUS_AUTHORITY_INVALID, verify_result.cert_status); in TEST_F()
650 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
686 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
728 EXPECT_EQ(CERT_STATUS_REVOKED, verify_result.cert_status); in TEST_F()
776 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
807 EXPECT_EQ(CERT_STATUS_REVOKED, verify_result2.cert_status); in TEST_F()
852 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
867 EXPECT_EQ(CERT_STATUS_AUTHORITY_INVALID, verify_result2.cert_status); in TEST_F()
922 EXPECT_EQ(0U, verify_result.cert_status); in TEST_F()
[all …]
/external/chromium_org/net/ssl/
Dssl_config.cc28 SSLConfig::CertAndStatus::CertAndStatus() : cert_status(0) {} in CertAndStatus()
50 CertStatus* cert_status) const { in IsAllowedBadCert()
54 return IsAllowedBadCert(der_cert, cert_status); in IsAllowedBadCert()
58 CertStatus* cert_status) const { in IsAllowedBadCert()
61 if (cert_status) in IsAllowedBadCert()
62 *cert_status = allowed_bad_certs[i].cert_status; in IsAllowedBadCert()
Dssl_info.cc27 cert_status = info.cert_status; in operator =()
43 cert_status = 0; in Reset()
56 cert_status |= MapNetErrorToCertStatus(error); in SetCertError()
Dssl_config.h45 bool IsAllowedBadCert(X509Certificate* cert, CertStatus* cert_status) const;
50 CertStatus* cert_status) const;
118 CertStatus cert_status; member
/external/chromium_org/content/common/
Dssl_status_serialization.cc14 net::CertStatus cert_status, in SerializeSecurityInfo() argument
21 pickle.WriteUInt32(cert_status); in SerializeSecurityInfo()
37 net::CertStatus* cert_status, in DeserializeSecurityInfo() argument
41 DCHECK(cert_id && cert_status && security_bits && ssl_connection_status && in DeserializeSecurityInfo()
47 *cert_status = 0; in DeserializeSecurityInfo()
57 pickle.ReadUInt32(&iter, cert_status) && in DeserializeSecurityInfo()
Dssl_status_serialization.h19 net::CertStatus cert_status,
28 net::CertStatus* cert_status,
/external/chromium_org/content/public/browser/
Dload_from_memory_cache_details.cc13 net::CertStatus cert_status, in LoadFromMemoryCacheDetails() argument
20 cert_status(cert_status), in LoadFromMemoryCacheDetails()
Dload_from_memory_cache_details.h20 net::CertStatus cert_status,
29 net::CertStatus cert_status; member
/external/chromium_org/content/public/common/
Dssl_status.h38 cert_status == status.cert_status && in Equals()
47 net::CertStatus cert_status; member
/external/chromium_org/content/browser/ssl/
Dssl_manager.cc61 << net::MapCertStatusToNetError(ssl_info.cert_status) << " id: " in OnSSLCertificateError()
65 << " cert_status: " << std::hex << ssl_info.cert_status; in OnSSLCertificateError()
140 entry->GetSSL().cert_status = ssl_cert_status; in DidCommitProvisionalLoad()
177 details.cert_status)); in DidLoadFromMemoryCache()
Dssl_cert_error_handler.cc26 cert_error_(net::MapCertStatusToNetError(ssl_info.cert_status)), in SSLCertErrorHandler()
38 if (net::IsCertStatusMinorError(ssl_info().cert_status)) { in OnDispatchFailed()
/external/chromium_org/net/quic/crypto/
Dproof_verifier_chromium.cc134 verify_details_->cert_verify_result.cert_status = CERT_STATUS_INVALID; in VerifyProof()
148 verify_details_->cert_verify_result.cert_status = CERT_STATUS_INVALID; in VerifyProof()
158 verify_details_->cert_verify_result.cert_status = CERT_STATUS_INVALID; in VerifyProof()
263 const CertStatus cert_status = cert_verify_result.cert_status; in DoVerifyCertComplete() local
266 (IsCertificateError(result) && IsCertStatusMinorError(cert_status))) && in DoVerifyCertComplete()
/external/chromium_org/net/tools/testserver/
Dminica.py257 cert_status = None
259 cert_status = asn1.Explicit(1, asn1.GeneralizedTime("20100101060000Z"))
261 cert_status = asn1.Raw(asn1.TagAndLength(0x80 | 2, 0))
263 cert_status = asn1.Raw(asn1.TagAndLength(0x80 | 0, 0))
281 cert_status,
/external/chromium_org/net/http/
Dhttp_response_info.cc197 CertStatus cert_status; in InitFromPickle() local
198 if (!pickle.ReadUInt32(&iter, &cert_status)) in InitFromPickle()
200 ssl_info.cert_status = cert_status; in InitFromPickle()
335 pickle->WriteUInt32(ssl_info.cert_status); in Persist()
/external/chromium_org/chrome/browser/ui/website_settings/
Dwebsite_settings.cc325 (!net::IsCertStatusError(ssl.cert_status) || in Init()
326 net::IsCertStatusMinorError(ssl.cert_status))) { in Init()
339 } else if (net::IsCertStatusMinorError(ssl.cert_status)) { in Init()
353 if (ssl.cert_status & net::CERT_STATUS_UNABLE_TO_CHECK_REVOCATION) { in Init()
356 } else if (ssl.cert_status & net::CERT_STATUS_NO_REVOCATION_MECHANISM) { in Init()
362 } else if (ssl.cert_status & net::CERT_STATUS_IS_EV) { in Init()
418 SSLErrorInfo::GetErrorsForCertStatus(ssl.cert_id, ssl.cert_status, in Init()
425 if (ssl.cert_status & net::CERT_STATUS_NON_UNIQUE_NAME) { in Init()

123