Home
last modified time | relevance | path

Searched refs:der_cert (Results 1 – 25 of 36) sorted by relevance

12

/external/chromium_org/net/cert/
Dx509_util_nss_unittest.cc24 SECItem der_cert; in CreateNSSCertHandleFromBytes() local
25 der_cert.data = reinterpret_cast<unsigned char*>(const_cast<char*>(data)); in CreateNSSCertHandleFromBytes()
26 der_cert.len = length; in CreateNSSCertHandleFromBytes()
27 der_cert.type = siDERCertBuffer; in CreateNSSCertHandleFromBytes()
30 return CERT_NewTempCertificate(CERT_GetDefaultCertDB(), &der_cert, NULL, in CreateNSSCertHandleFromBytes()
35 void VerifyCertificateSignature(const std::string& der_cert, in VerifyCertificateSignature() argument
44 reinterpret_cast<unsigned char*>(const_cast<char*>(der_cert.data())), in VerifyCertificateSignature()
45 static_cast<unsigned int>(der_cert.size()) in VerifyCertificateSignature()
80 const std::string& der_cert) { in VerifyDomainBoundCert() argument
117 der_cert.data(), der_cert.size()); in VerifyDomainBoundCert()
[all …]
Dx509_util_openssl_unittest.cc20 void VerifyCertificateSignature(const std::string& der_cert, in VerifyCertificateSignature() argument
23 reinterpret_cast<const unsigned char*>(der_cert.data()); in VerifyCertificateSignature()
24 int cert_data_len = static_cast<int>(der_cert.size()); in VerifyCertificateSignature()
46 const std::string& der_cert) { in VerifyDomainBoundCert() argument
54 reinterpret_cast<const unsigned char*>(der_cert.data()); in VerifyDomainBoundCert()
55 int cert_data_len = static_cast<int>(der_cert.size()); in VerifyDomainBoundCert()
122 std::string der_cert; in TEST() local
130 &der_cert)); in TEST()
132 VerifyDomainBoundCert(domain, der_cert); in TEST()
137 VerifyCertificateSignature(der_cert, spki); in TEST()
Dx509_util_unittest.cc60 std::string der_cert; in TEST() local
67 &der_cert)); in TEST()
72 der_cert.data(), der_cert.size())); in TEST()
173 std::string der_cert; in TEST() local
181 &der_cert)); in TEST()
184 X509Certificate::CreateFromBytes(der_cert.data(), der_cert.size()); in TEST()
Dx509_util_ios.cc36 SECItem der_cert; in CreateNSSCertHandleFromBytes() local
37 der_cert.data = reinterpret_cast<unsigned char*>(const_cast<char*>(data)); in CreateNSSCertHandleFromBytes()
38 der_cert.len = length; in CreateNSSCertHandleFromBytes()
39 der_cert.type = siDERCertBuffer; in CreateNSSCertHandleFromBytes()
42 return CERT_NewTempCertificate(CERT_GetDefaultCertDB(), &der_cert, NULL, in CreateNSSCertHandleFromBytes()
Dx509_util.h53 std::string* der_cert);
62 std::string* der_cert);
87 std::string* der_cert);
98 std::string* der_cert);
Dx509_util.cc63 std::string* der_cert) { in CreateKeyAndDomainBoundCertEC() argument
74 der_cert); in CreateKeyAndDomainBoundCertEC()
86 std::string* der_cert) { in CreateKeyAndSelfSignedCert() argument
98 der_cert); in CreateKeyAndSelfSignedCert()
Dx509_certificate_nss.cc181 SECItem der_cert; in CreateOSCertHandleFromBytesWithNickname() local
182 der_cert.data = reinterpret_cast<unsigned char*>(const_cast<char*>(data)); in CreateOSCertHandleFromBytesWithNickname()
183 der_cert.len = length; in CreateOSCertHandleFromBytesWithNickname()
184 der_cert.type = siDERCertBuffer; in CreateOSCertHandleFromBytesWithNickname()
187 return CERT_NewTempCertificate(CERT_GetDefaultCertDB(), &der_cert, in CreateOSCertHandleFromBytesWithNickname()
Dx509_util_nss.cc259 std::string* der_cert) { in CreateSelfSignedCert() argument
275 der_cert->assign(reinterpret_cast<char*>(cert->derCert.data), in CreateSelfSignedCert()
300 std::string* der_cert) { in CreateDomainBoundCertEC() argument
364 der_cert->clear(); in CreateDomainBoundCertEC()
365 der_cert->append(reinterpret_cast<char*>(cert->derCert.data), in CreateDomainBoundCertEC()
Dct_objects_extractor_nss.cc47 SECItem der_cert; in NSSCertWrapper()
51 der_cert.data = in NSSCertWrapper()
53 der_cert.len = der_data.size(); in NSSCertWrapper()
59 CERT_GetDefaultCertDB(), &der_cert, NULL, PR_FALSE, PR_TRUE)); in NSSCertWrapper()
/external/chromium_org/net/ssl/
Dserver_bound_cert_service_unittest.cc164 std::string private_key, der_cert; in TEST_F() local
167 host, &private_key, &der_cert, callback.callback(), &request_handle); in TEST_F()
171 EXPECT_TRUE(der_cert.empty()); in TEST_F()
346 std::string private_key_info, der_cert; in TEST_F() local
352 host, &private_key_info, &der_cert, callback.callback(), in TEST_F()
360 ASSERT_TRUE(asn1::ExtractSPKIFromDERCert(der_cert, &spki_piece)); in TEST_F()
374 X509Certificate::CreateFromBytes(der_cert.data(), der_cert.size())); in TEST_F()
381 std::string private_key_info, der_cert; in TEST_F() local
387 &der_cert, in TEST_F()
407 std::string private_key_info, der_cert; in TEST_F() local
[all …]
Dssl_config_service.cc60 std::string der_cert; in IsAllowedBadCert() local
61 if (!X509Certificate::GetDEREncoded(cert->os_cert_handle(), &der_cert)) in IsAllowedBadCert()
63 return IsAllowedBadCert(der_cert, cert_status); in IsAllowedBadCert()
66 bool SSLConfig::IsAllowedBadCert(const base::StringPiece& der_cert, in IsAllowedBadCert() argument
69 if (der_cert == allowed_bad_certs[i].der_cert) { in IsAllowedBadCert()
Dssl_config_service.h49 bool IsAllowedBadCert(const base::StringPiece& der_cert,
125 std::string der_cert; member
/external/chromium_org/chrome/browser/extensions/api/cast_channel/
Dcast_auth_util_nss.cc88 SECItem der_cert; in VerifyCredentials() local
89 der_cert.type = siDERCertBuffer; in VerifyCredentials()
91 der_cert.data = reinterpret_cast<unsigned char*>(const_cast<char*>( in VerifyCredentials()
93 der_cert.len = certificate.length(); in VerifyCredentials()
97 CERT_GetDefaultCertDB(), &der_cert, NULL, PR_FALSE, PR_TRUE)); in VerifyCredentials()
/external/chromium_org/chrome/browser/extensions/api/networking_private/
Dnetworking_private_crypto.cc86 SECItem der_cert; in VerifyCredentials() local
87 der_cert.type = siDERCertBuffer; in VerifyCredentials()
88 der_cert.data = reinterpret_cast<unsigned char*>( in VerifyCredentials()
90 der_cert.len = cert_data.length(); in VerifyCredentials()
99 CERT_GetDefaultCertDB(), &der_cert, NULL, PR_FALSE, PR_TRUE)); in VerifyCredentials()
/external/chromium_org/remoting/base/
Drsa_key_pair.cc93 std::string der_cert; in GenerateCertificate() local
104 &der_cert); in GenerateCertificate()
105 return der_cert; in GenerateCertificate()
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
Dwebrtcsessiondescriptionfactory.h56 virtual void OnSuccess(const std::string& der_cert, in OnSuccess() argument
58 SignalIdentityReady(der_cert, der_private_key); in OnSuccess()
146 void OnIdentityReady(const std::string& der_cert,
Dwebrtcsessiondescriptionfactory.cc412 const std::string& der_cert, in OnIdentityReady() argument
419 reinterpret_cast<const unsigned char*>(der_cert.data()), in OnIdentityReady()
420 der_cert.length()); in OnIdentityReady()
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/test/
Dfakedtlsidentityservice.h125 std::string* der_cert, in GenerateIdentity() argument
127 talk_base::SSLIdentity::PemToDer("CERTIFICATE", kCERT_PEM, der_cert); in GenerateIdentity()
/external/chromium/net/socket/
Dssl_host_info.cc91 std::string der_cert; in ParseInner() local
92 if (!p.ReadString(&iter, &der_cert)) in ParseInner()
94 state->certs.push_back(der_cert); in ParseInner()
Dssl_server_socket_nss.cc287 SECItem der_cert; in InitializeSSLOptions() local
288 der_cert.data = reinterpret_cast<unsigned char*>(const_cast<char*>( in InitializeSSLOptions()
290 der_cert.len = der_string.length(); in InitializeSSLOptions()
291 der_cert.type = siDERCertBuffer; in InitializeSSLOptions()
295 CERT_GetDefaultCertDB(), &der_cert, NULL, PR_FALSE, PR_TRUE); in InitializeSSLOptions()
Dssl_client_socket_nss.cc1966 SECItem der_cert; in PlatformClientAuthHandler() local
1967 der_cert.type = siDERCertBuffer; in PlatformClientAuthHandler()
1968 der_cert.data = cert_context->pbCertEncoded; in PlatformClientAuthHandler()
1969 der_cert.len = cert_context->cbCertEncoded; in PlatformClientAuthHandler()
1975 db_handle, &der_cert, NULL, PR_FALSE, PR_TRUE); in PlatformClientAuthHandler()
1983 der_cert.data = (*it)->pbCertEncoded; in PlatformClientAuthHandler()
1984 der_cert.len = (*it)->cbCertEncoded; in PlatformClientAuthHandler()
1987 db_handle, &der_cert, NULL, PR_FALSE, PR_TRUE); in PlatformClientAuthHandler()
2125 SECItem der_cert; in PlatformClientAuthHandler() local
2126 der_cert.type = siDERCertBuffer; in PlatformClientAuthHandler()
[all …]
/external/chromium/net/base/
Dx509_certificate.cc188 static X509Certificate::OSCertHandle CreateOSCert(base::StringPiece der_cert) { in CreateOSCert() argument
192 reinterpret_cast<const BYTE*>(der_cert.data()), der_cert.size(), in CreateOSCert()
197 static X509Certificate::OSCertHandle CreateOSCert(base::StringPiece der_cert) { in CreateOSCert() argument
199 const_cast<char*>(der_cert.data()), der_cert.size()); in CreateOSCert()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dnssidentity.cc137 SECItem der_cert; in FromPEMString() local
138 der_cert.data = reinterpret_cast<unsigned char *>(const_cast<char *>( in FromPEMString()
140 der_cert.len = der.size(); in FromPEMString()
142 &der_cert, NULL, PR_FALSE, PR_TRUE); in FromPEMString()
/external/chromium_org/net/socket/
Dssl_server_socket_nss.cc423 SECItem der_cert; in InitializeSSLOptions() local
424 der_cert.data = reinterpret_cast<unsigned char*>(const_cast<char*>( in InitializeSSLOptions()
426 der_cert.len = der_string.length(); in InitializeSSLOptions()
427 der_cert.type = siDERCertBuffer; in InitializeSSLOptions()
431 CERT_GetDefaultCertDB(), &der_cert, NULL, PR_FALSE, PR_TRUE); in InitializeSSLOptions()
Dssl_client_socket_nss.cc1383 SECItem der_cert; in PlatformClientAuthHandler() local
1384 der_cert.type = siDERCertBuffer; in PlatformClientAuthHandler()
1385 der_cert.data = cert_context->pbCertEncoded; in PlatformClientAuthHandler()
1386 der_cert.len = cert_context->cbCertEncoded; in PlatformClientAuthHandler()
1391 db_handle, &der_cert, NULL, PR_FALSE, PR_TRUE); in PlatformClientAuthHandler()
1406 der_cert.data = (*it)->pbCertEncoded; in PlatformClientAuthHandler()
1407 der_cert.len = (*it)->cbCertEncoded; in PlatformClientAuthHandler()
1410 db_handle, &der_cert, NULL, PR_FALSE, PR_TRUE); in PlatformClientAuthHandler()
1494 SECItem der_cert; in PlatformClientAuthHandler() local
1495 der_cert.type = siDERCertBuffer; in PlatformClientAuthHandler()
[all …]

12