Home
last modified time | relevance | path

Searched refs:cert_chain (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/net/ssl/
Dclient_cert_store_mac.cc90 CFArrayRef cert_chain = NULL; in IsIssuedByInKeychain() local
91 OSStatus result = CopyCertChain(cert_handle, &cert_chain); in IsIssuedByInKeychain()
97 if (!cert_chain) in IsIssuedByInKeychain()
101 for (CFIndex i = 1, chain_count = CFArrayGetCount(cert_chain); in IsIssuedByInKeychain()
104 const_cast<void*>(CFArrayGetValueAtIndex(cert_chain, i))); in IsIssuedByInKeychain()
110 CFRelease(cert_chain); // Also frees |intermediates|. in IsIssuedByInKeychain()
/external/chromium_org/chrome/browser/ui/
Dcertificate_dialogs.cc200 net::X509Certificate::OSCertHandles cert_chain; in ShowCertExportDialog() local
201 cert_chain.push_back(cert->os_cert_handle()); in ShowCertExportDialog()
204 cert_chain.insert(cert_chain.end(), certs.begin(), certs.end()); in ShowCertExportDialog()
205 new Exporter(web_contents, parent, cert_chain.begin(), cert_chain.end()); in ShowCertExportDialog()
/external/openssl/patches/
D0003-jsse.patch41 +int SSL_use_certificate_chain(SSL *ssl, STACK_OF(X509) *cert_chain);
115 + STACK_OF(X509) *cert_chain;
118 + cert_chain = SSL_get_certificate_chain(s, x);
120 + if ((s->mode & SSL_MODE_NO_AUTO_CHAIN) || s->ctx->extra_certs || cert_chain)
128 + for (i=0; i<sk_X509_num(cert_chain); i++)
129 + if (ssl3_add_cert_to_buf(buf, &l, sk_X509_value(cert_chain,i)))
357 + STACK_OF(X509) *cert_chain;
367 +int SSL_use_certificate_chain(SSL *ssl, STACK_OF(X509) *cert_chain)
384 + if (ssl->cert->key->cert_chain != NULL)
385 + sk_X509_pop_free(ssl->cert->key->cert_chain, X509_free);
[all …]
/external/chromium_org/chrome/browser/ui/android/
Dwebsite_settings_popup_android.cc47 std::vector<std::string> cert_chain; in GetCertificateChain() local
55 cert_chain.reserve(cert_handles.size()); in GetCertificateChain()
62 cert_chain.push_back(cert_bytes); in GetCertificateChain()
66 return base::android::ToJavaArrayOfByteArray(env, cert_chain).Release(); in GetCertificateChain()
/external/chromium_org/chrome/browser/ui/webui/
Dcertificate_viewer_webui.cc104 net::X509Certificate::OSCertHandles cert_chain; in GetDialogArgs() local
105 cert_chain.push_back(cert_->os_cert_handle()); in GetDialogArgs()
108 cert_chain.insert(cert_chain.end(), certs.begin(), certs.end()); in GetDialogArgs()
129 cert_chain.front())))); in GetDialogArgs()
175 cert_chain.begin(); i != cert_chain.end(); ++i, ++index) { in GetDialogArgs()
/external/chromium_org/net/cert/
Dx509_certificate_nss.cc125 std::vector<CERTCertificate*> cert_chain; in IsIssuedByEncoded() local
126 cert_chain.push_back(cert_handle_); in IsIssuedByEncoded()
128 cert_chain.push_back(intermediate_ca_certs_[n]); in IsIssuedByEncoded()
138 return x509_util::IsCertificateIssuedBy(cert_chain, issuers); in IsIssuedByEncoded()
Dcert_verify_proc_unittest.cc295 scoped_refptr<X509Certificate> cert_chain = in TEST_F() local
302 int error = Verify(cert_chain.get(), in TEST_F()
393 scoped_refptr<X509Certificate> cert_chain = in TEST_F() local
398 int error = Verify(cert_chain.get(), in TEST_F()
452 scoped_refptr<X509Certificate> cert_chain = in TEST_F() local
458 int error = Verify(cert_chain.get(), in TEST_F()
491 scoped_refptr<X509Certificate> cert_chain = in TEST_F() local
497 int error = Verify(cert_chain.get(), in TEST_F()
508 error = Verify(cert_chain.get(), in TEST_F()
632 scoped_refptr<X509Certificate> cert_chain = in TEST_F() local
[all …]
Dx509_util_ios.h64 const std::vector<CERTCertificate*>& cert_chain() const;
Dx509_util_nss.h80 bool IsCertificateIssuedBy(const std::vector<CERTCertificate*>& cert_chain,
Dx509_certificate_unittest.cc729 scoped_refptr<X509Certificate> cert_chain = in TEST() local
738 EXPECT_TRUE(cert_chain->IsIssuedByEncoded(issuers)); in TEST()
743 EXPECT_TRUE(cert_chain->IsIssuedByEncoded(issuers)); in TEST()
749 EXPECT_TRUE(cert_chain->IsIssuedByEncoded(issuers)); in TEST()
753 EXPECT_FALSE(cert_chain->IsIssuedByEncoded(issuers)); in TEST()
760 EXPECT_FALSE(cert_chain->IsIssuedByEncoded(issuers)); in TEST()
Dcert_verify_proc_mac.cc181 void GetCertChainInfo(CFArrayRef cert_chain, in GetCertChainInfo() argument
186 for (CFIndex i = 0, count = CFArrayGetCount(cert_chain); i < count; ++i) { in GetCertChainInfo()
188 const_cast<void*>(CFArrayGetValueAtIndex(cert_chain, i))); in GetCertChainInfo()
Dx509_util_nss.cc594 bool IsCertificateIssuedBy(const std::vector<CERTCertificate*>& cert_chain, in IsCertificateIssuedBy() argument
596 for (size_t n = 0; n < cert_chain.size(); ++n) { in IsCertificateIssuedBy()
597 CERTName* cert_issuer = &cert_chain[n]->issuer; in IsCertificateIssuedBy()
Dx509_util_ios.cc136 const std::vector<CERTCertificate*>& NSSCertChain::cert_chain() const { in cert_chain() function in net::x509_util_ios::NSSCertChain
Dx509_certificate.cc317 std::vector<base::StringPiece> cert_chain; in CreateFromPickle() local
323 cert_chain.push_back(base::StringPiece(data, data_length)); in CreateFromPickle()
325 return CreateFromDERCertChain(cert_chain); in CreateFromPickle()
Dx509_certificate_ios.cc85 nss_chain.cert_chain(), issuers); in IsIssuedByEncoded()
/external/chromium_org/chrome/browser/chromeos/login/test/
Dhttps_forwarder.py102 self.cert_chain = tlslite.api.X509CertChain()
103 self.cert_chain.parsePemList(pem_cert_and_key)
126 tlsConnection.handshakeServer(certChain=self.cert_chain,
/external/openssl/ssl/
Dssl_rsa.c700 int SSL_use_certificate_chain(SSL *ssl, STACK_OF(X509) *cert_chain) in SSL_use_certificate_chain() argument
717 if (ssl->cert->key->cert_chain != NULL) in SSL_use_certificate_chain()
718 sk_X509_pop_free(ssl->cert->key->cert_chain, X509_free); in SSL_use_certificate_chain()
719 ssl->cert->key->cert_chain = cert_chain; in SSL_use_certificate_chain()
734 return ssl->cert->pkeys[i].cert_chain; in STACK_OF()
Ds3_both.c356 STACK_OF(X509) *cert_chain; in ssl3_output_cert_chain()
358 cert_chain = SSL_get_certificate_chain(s, x); in ssl3_output_cert_chain()
360 if ((s->mode & SSL_MODE_NO_AUTO_CHAIN) || s->ctx->extra_certs || cert_chain) in ssl3_output_cert_chain()
412 for (i=0; i<sk_X509_num(cert_chain); i++) in ssl3_output_cert_chain()
413 if (ssl3_add_cert_to_buf(buf, &l, sk_X509_value(cert_chain,i))) in ssl3_output_cert_chain()
/external/chromium_org/chrome/browser/net/
Dchrome_fraudulent_certificate_reporter.cc50 std::string* cert_chain = request.mutable_cert_chain(); in BuildReport() local
52 *cert_chain += pem_encoded_chain[i]; in BuildReport()
Dcert_logger.proto31 required string cert_chain = 2; field
/external/chromium_org/net/android/
Dnetwork_library.cc25 void VerifyX509CertChain(const std::vector<std::string>& cert_chain, in VerifyX509CertChain() argument
34 ToJavaArrayOfByteArray(env, cert_chain); in VerifyX509CertChain()
Dnetwork_library.h24 void VerifyX509CertChain(const std::vector<std::string>& cert_chain,
/external/chromium_org/chrome/common/net/
Dx509_certificate_model_nss.cc226 string GetCMSString(const X509Certificate::OSCertHandles& cert_chain, in GetCMSString() argument
236 message.get(), cert_chain[start], PR_FALSE)); in GetCMSString()
243 if (NSS_CMSSignedData_AddCertificate(signed_data.get(), cert_chain[i]) != in GetCMSString()
Dx509_certificate_model.h89 std::string GetCMSString(const net::X509Certificate::OSCertHandles& cert_chain,
/external/chromium_org/chrome/browser/ui/cocoa/
Dcertificate_viewer_mac.mm81 base::ScopedCFTypeRef<CFArrayRef> cert_chain(
83 NSArray* certificates = base::mac::CFToNSCast(cert_chain.get());

12