Home
last modified time | relevance | path

Searched refs:CertificateTrust (Results 1 – 25 of 40) sorted by relevance

12

/external/cronet/net/cert/pki/
Dtrust_store_unittest.cc18 std::vector<CertificateTrust> trust_settings = { in TEST()
20 CertificateTrust::ForTrustAnchor(), in TEST()
21 CertificateTrust::ForTrustAnchor().WithEnforceAnchorConstraints(), in TEST()
22 CertificateTrust::ForTrustAnchor().WithEnforceAnchorExpiry(), in TEST()
23 CertificateTrust::ForTrustAnchor().WithRequireAnchorBasicConstraints(), in TEST()
24 CertificateTrust::ForTrustAnchor() in TEST()
27 CertificateTrust::ForTrustAnchor() in TEST()
33 CertificateTrust::ForTrustAnchorOrLeaf(), in TEST()
35 CertificateTrust::ForTrustAnchorOrLeaf().WithEnforceAnchorConstraints(), in TEST()
36 CertificateTrust::ForTrustAnchorOrLeaf().WithEnforceAnchorExpiry(), in TEST()
[all …]
Dtrust_store.h38 struct NET_EXPORT CertificateTrust { struct
39 static constexpr CertificateTrust ForTrustAnchor() { in ForTrustAnchor() argument
40 CertificateTrust result; in ForTrustAnchor()
45 static constexpr CertificateTrust ForTrustAnchorOrLeaf() { in ForTrustAnchorOrLeaf() argument
46 CertificateTrust result; in ForTrustAnchorOrLeaf()
51 static constexpr CertificateTrust ForTrustedLeaf() { in ForTrustedLeaf() argument
52 CertificateTrust result; in ForTrustedLeaf()
57 static constexpr CertificateTrust ForUnspecified() { in ForUnspecified() argument
58 CertificateTrust result; in ForUnspecified()
62 static constexpr CertificateTrust ForDistrusted() { in ForDistrusted() argument
[all …]
Dtrust_store.cc27 bool CertificateTrust::IsTrustAnchor() const { in IsTrustAnchor()
42 bool CertificateTrust::IsTrustLeaf() const { in IsTrustLeaf()
57 bool CertificateTrust::IsDistrusted() const { in IsDistrusted()
72 bool CertificateTrust::HasUnspecifiedTrust() const { in HasUnspecifiedTrust()
87 std::string CertificateTrust::ToDebugString() const { in ToDebugString()
126 absl::optional<CertificateTrust> CertificateTrust::FromDebugString( in FromDebugString()
135 CertificateTrust trust; in FromDebugString()
138 trust = CertificateTrust::ForUnspecified(); in FromDebugString()
140 trust = CertificateTrust::ForDistrusted(); in FromDebugString()
142 trust = CertificateTrust::ForTrustAnchor(); in FromDebugString()
[all …]
Dtrust_store_collection_unittest.cc79 CertificateTrust trust = in TEST_F()
81 EXPECT_EQ(CertificateTrust::ForTrustAnchor().ToDebugString(), in TEST_F()
86 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_F()
108 CertificateTrust trust = in TEST_F()
110 EXPECT_EQ(CertificateTrust::ForTrustAnchor().ToDebugString(), in TEST_F()
115 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_F()
137 CertificateTrust trust = in TEST_F()
139 EXPECT_EQ(CertificateTrust::ForTrustAnchor().ToDebugString(), in TEST_F()
144 EXPECT_EQ(CertificateTrust::ForTrustAnchor().ToDebugString(), in TEST_F()
149 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_F()
[all …]
Dtrust_store_in_memory.cc22 AddCertificate(std::move(cert), CertificateTrust::ForTrustAnchor()); in AddTrustAnchor()
28 CertificateTrust::ForTrustAnchor().WithEnforceAnchorExpiry()); in AddTrustAnchorWithExpiration()
35 CertificateTrust::ForTrustAnchor().WithEnforceAnchorConstraints()); in AddTrustAnchorWithConstraints()
40 AddCertificate(std::move(cert), CertificateTrust::ForDistrusted()); in AddDistrustedCertificateForTest()
45 AddCertificate(std::move(cert), CertificateTrust::ForUnspecified()); in AddCertificateWithUnspecifiedTrust()
55 CertificateTrust TrustStoreInMemory::GetTrust( in GetTrust()
59 return entry ? entry->trust : CertificateTrust::ForUnspecified(); in GetTrust()
72 const CertificateTrust& trust) { in AddCertificate()
Dtrust_store_collection.cc24 CertificateTrust TrustStoreCollection::GetTrust( in GetTrust()
28 CertificateTrust result = CertificateTrust::ForUnspecified(); in GetTrust()
31 CertificateTrust cur_trust = store->GetTrust(cert, debug_data); in GetTrust()
Dtest_helpers.cc310 test->last_cert_trust = CertificateTrust::ForTrustAnchor(); in ReadVerifyCertChainTestFromFile()
313 CertificateTrust::ForTrustAnchor().WithEnforceAnchorExpiry(); in ReadVerifyCertChainTestFromFile()
316 CertificateTrust::ForTrustAnchor().WithEnforceAnchorConstraints(); in ReadVerifyCertChainTestFromFile()
318 test->last_cert_trust = CertificateTrust::ForTrustAnchor() in ReadVerifyCertChainTestFromFile()
322 test->last_cert_trust = CertificateTrust::ForTrustAnchor() in ReadVerifyCertChainTestFromFile()
326 test->last_cert_trust = CertificateTrust::ForTrustAnchor() in ReadVerifyCertChainTestFromFile()
330 test->last_cert_trust = CertificateTrust::ForTrustAnchorOrLeaf(); in ReadVerifyCertChainTestFromFile()
332 test->last_cert_trust = CertificateTrust::ForTrustedLeaf(); in ReadVerifyCertChainTestFromFile()
335 CertificateTrust::ForTrustedLeaf().WithRequireLeafSelfSigned(); in ReadVerifyCertChainTestFromFile()
337 test->last_cert_trust = CertificateTrust::ForDistrusted(); in ReadVerifyCertChainTestFromFile()
[all …]
Dtrust_store_in_memory.h35 const CertificateTrust& trust);
64 CertificateTrust GetTrust(const ParsedCertificate* cert,
78 CertificateTrust trust;
Dverify_certificate_chain.h23 struct CertificateTrust;
244 const CertificateTrust& last_cert_trust,
Dpath_builder.cc63 CertificateTrust trust;
109 const CertificateTrust& issuer_trust) { in TrustAndKeyIdentifierMatchToOrder()
486 CertificateTrust* out_last_cert_trust,
524 CertificateTrust* out_last_cert_trust, in GetNextPath()
531 *out_last_cert_trust = CertificateTrust::ForUnspecified(); in GetNextPath()
607 next_issuer_.trust = CertificateTrust::ForUnspecified(); in GetNextPath()
616 next_issuer_.trust = CertificateTrust::ForUnspecified(); in GetNextPath()
637 next_issuer_.trust = CertificateTrust::ForUnspecified(); in GetNextPath()
Dverify_certificate_chain.cc621 const CertificateTrust& last_cert_trust,
680 const CertificateTrust& trust,
690 const CertificateTrust& trust,
1330 const CertificateTrust& trust, in ProcessRootCertificate()
1379 const CertificateTrust& trust, in ProcessSingleCertChain()
1449 const CertificateTrust& last_cert_trust, in Run()
1595 const CertificateTrust& last_cert_trust, in VerifyCertificateChain()
Dtrust_store_collection.h34 CertificateTrust GetTrust(const ParsedCertificate* cert,
/external/cronet/net/cert/internal/
Dtrust_store_nss.cc143 CertificateTrust trust) in ListCertsResult()
198 CertificateTrust TrustStoreNSS::GetTrust(const ParsedCertificate* cert, in GetTrust()
267 CertificateTrust TrustStoreNSS::GetTrustIgnoringSystemTrust( in GetTrustIgnoringSystemTrust()
287 return CertificateTrust::ForUnspecified(); in GetTrustIgnoringSystemTrust()
306 return CertificateTrust::ForUnspecified(); in GetTrustIgnoringSystemTrust()
312 CertificateTrust TrustStoreNSS::GetTrustIgnoringSystemTrust( in GetTrustIgnoringSystemTrust()
320 return CertificateTrust::ForUnspecified(); in GetTrustIgnoringSystemTrust()
338 return CertificateTrust::ForUnspecified(); in GetTrustIgnoringSystemTrust()
371 return CertificateTrust::ForUnspecified(); in GetTrustIgnoringSystemTrust()
463 return CertificateTrust::ForTrustedLeaf(); in GetTrustIgnoringSystemTrust()
[all …]
Dtrust_store_nss_unittest.cc124 CertificateTrust ExpectedTrustForBuiltinAnchor() const { in ExpectedTrustForBuiltinAnchor()
125 return CertificateTrust::ForTrustAnchor(); in ExpectedTrustForBuiltinAnchor()
128 CertificateTrust ExpectedTrustForAnchor() const { in ExpectedTrustForAnchor()
129 CertificateTrust trust = CertificateTrust::ForTrustAnchor(); in ExpectedTrustForAnchor()
136 CertificateTrust ExpectedTrustForAnchorOrLeaf() const { in ExpectedTrustForAnchorOrLeaf()
137 CertificateTrust trust; in ExpectedTrustForAnchorOrLeaf()
139 trust = CertificateTrust::ForTrustAnchorOrLeaf(); in ExpectedTrustForAnchorOrLeaf()
141 trust = CertificateTrust::ForTrustAnchor(); in ExpectedTrustForAnchorOrLeaf()
149 CertificateTrust ExpectedTrustForLeaf() const { in ExpectedTrustForLeaf()
151 return CertificateTrust::ForTrustedLeaf(); in ExpectedTrustForLeaf()
[all …]
Dtrust_store_win_unittest.cc90 CertificateTrust ExpectedTrustForAnchor() const { in ExpectedTrustForAnchor()
92 return CertificateTrust::ForTrustAnchorOrLeaf() in ExpectedTrustForAnchor()
98 return CertificateTrust::ForTrustAnchor() in ExpectedTrustForAnchor()
105 CertificateTrust ExpectedTrustForPeer() const { in ExpectedTrustForPeer()
107 return CertificateTrust::ForTrustedLeaf().WithRequireLeafSelfSigned(); in ExpectedTrustForPeer()
109 return CertificateTrust::ForUnspecified(); in ExpectedTrustForPeer()
171 CertificateTrust trust = trust_store_win->GetTrust(d_by_d_.get(), nullptr); in TEST_P()
172 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_P()
196 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_P()
201 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_P()
[all …]
Dtrust_store_nss.h86 CertificateTrust GetTrust(const ParsedCertificate* cert,
90 ListCertsResult(ScopedCERTCertificate cert, CertificateTrust trust);
96 CertificateTrust trust;
102 CertificateTrust GetTrustForNSSTrust(const CERTCertTrust& trust) const;
104 CertificateTrust GetTrustIgnoringSystemTrust(
108 CertificateTrust GetTrustIgnoringSystemTrust(
112 CertificateTrust GetTrustWithSystemTrust(
Dsystem_trust_store_nss_unittest.cc112 CertificateTrust trust = in TEST_F()
115 EXPECT_EQ(CertificateTrust::ForTrustAnchor() in TEST_F()
132 CertificateTrust trust = in TEST_F()
135 EXPECT_EQ(CertificateTrust::ForTrustAnchor().ToDebugString(), in TEST_F()
149 CertificateTrust trust = in TEST_F()
152 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_F()
164 CertificateTrust trust = in TEST_F()
167 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_F()
Dtrust_store_chrome_unittest.cc47 CertificateTrust trust = in TEST()
49 EXPECT_EQ(CertificateTrust::ForTrustAnchor().ToDebugString(), in TEST()
62 CertificateTrust trust = trust_store_chrome->GetTrust(other_parsed.get(), in TEST()
64 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST()
Dtrust_store_win.cc287 CertificateTrust GetTrust(const ParsedCertificate* cert, in GetTrust()
292 return CertificateTrust::ForUnspecified(); in GetTrust()
312 return CertificateTrust::ForDistrusted(); in GetTrust()
331 return CertificateTrust::ForTrustAnchorOrLeaf() in GetTrust()
337 return CertificateTrust::ForTrustAnchor() in GetTrust()
358 return CertificateTrust::ForTrustedLeaf() in GetTrust()
376 return CertificateTrust::ForUnspecified(); in GetTrust()
458 CertificateTrust TrustStoreWin::GetTrust(const ParsedCertificate* cert, in GetTrust()
Dtrust_store_mac_unittest.cc152 CertificateTrust ExpectedTrustForAnchor() const { in ExpectedTrustForAnchor()
153 CertificateTrust trust; in ExpectedTrustForAnchor()
157 CertificateTrust::ForTrustAnchorOrLeaf().WithEnforceAnchorExpiry(); in ExpectedTrustForAnchor()
159 trust = CertificateTrust::ForTrustAnchor().WithEnforceAnchorExpiry(); in ExpectedTrustForAnchor()
265 CertificateTrust trust = trust_store.GetTrust(cert.get(), &debug_data); in TEST_P()
266 EXPECT_EQ(CertificateTrust::ForUnspecified().ToDebugString(), in TEST_P()
352 CertificateTrust cert_trust = trust_store.GetTrust(cert.get(), &debug_data); in TEST_P()
412 CertificateTrust cert_trust2 = in TEST_P()
Dtrust_store_android.cc48 CertificateTrust GetTrust(const ParsedCertificate* cert, in GetTrust()
114 CertificateTrust TrustStoreAndroid::GetTrust( in GetTrust()
/external/cronet/net/cert/
Dtest_root_certs.h85 bool Add(X509Certificate* certificate, CertificateTrust trust);
122 CertificateTrust trust = CertificateTrust::ForTrustAnchor());
128 CertificateTrust trust = CertificateTrust::ForTrustAnchor());
144 CertificateTrust trust = CertificateTrust::ForTrustAnchor());
Dtest_root_certs.cc36 bool TestRootCerts::Add(X509Certificate* certificate, CertificateTrust trust) { in Add()
84 ScopedTestRoot::ScopedTestRoot(X509Certificate* cert, CertificateTrust trust) { in ScopedTestRoot()
88 ScopedTestRoot::ScopedTestRoot(CertificateList certs, CertificateTrust trust) { in ScopedTestRoot()
107 void ScopedTestRoot::Reset(CertificateList certs, CertificateTrust trust) { in Reset()
Dcert_verify_proc_unittest.cc482 CertificateTrust::ForTrustAnchor()); in TEST_P()
486 CertificateTrust::ForDistrusted()); in TEST_P()
4061 int VerifyWithTrust(CertificateTrust trust) { in VerifyWithTrust()
4070 int Verify() { return VerifyWithTrust(CertificateTrust::ForTrustAnchor()); } in Verify()
4073 return VerifyWithTrust(CertificateTrust::ForTrustAnchor() in VerifyWithExpiryAndConstraints()
4079 return VerifyWithTrust(CertificateTrust::ForTrustAnchor() in VerifyWithExpiryAndFullConstraints()
4107 EXPECT_THAT(VerifyWithTrust(CertificateTrust::ForTrustAnchorOrLeaf()), in TEST_P()
4109 EXPECT_THAT(VerifyWithTrust(CertificateTrust::ForTrustedLeaf()), in TEST_P()
5020 int VerifyWithTrust(CertificateTrust trust) { in VerifyWithTrust()
5029 int Verify() { return VerifyWithTrust(CertificateTrust::ForTrustAnchor()); } in Verify()
[all …]
/external/cronet/net/tools/cert_verify_tool/
Dcert_verify_tool.cc477 net::CertificateTrust trust = net::CertificateTrust::ForTrustedLeaf(); in main()
480 absl::optional<net::CertificateTrust> parsed_trust = in main()
481 net::CertificateTrust::FromDebugString(trust_str); in main()
493 net::CertificateTrust root_trust = net::CertificateTrust::ForTrustAnchor(); in main()
497 absl::optional<net::CertificateTrust> parsed_trust = in main()
498 net::CertificateTrust::FromDebugString(trust_str); in main()

12