• Home
  • Raw
  • Download

Lines Matching refs:X509Certificate

105   X509Certificate::Format format;
111 { "google.single.der", X509Certificate::FORMAT_SINGLE_CERTIFICATE,
115 { "google.single.pem", X509Certificate::FORMAT_SINGLE_CERTIFICATE,
120 { "google.single.pem", X509Certificate::FORMAT_PEM_CERT_SEQUENCE,
125 { "google.chain.pem", X509Certificate::FORMAT_PEM_CERT_SEQUENCE,
131 { "google.binary.p7b", X509Certificate::FORMAT_PKCS7,
137 { "google.pem_cert.p7b", X509Certificate::FORMAT_PKCS7,
143 { "google.pem_pkcs7.p7b", X509Certificate::FORMAT_PKCS7,
148 { "google.single.der", X509Certificate::FORMAT_AUTO,
151 { "google.single.pem", X509Certificate::FORMAT_AUTO,
154 { "google.chain.pem", X509Certificate::FORMAT_AUTO,
158 { "google.binary.p7b", X509Certificate::FORMAT_AUTO,
162 { "google.pem_cert.p7b", X509Certificate::FORMAT_AUTO,
166 { "google.pem_pkcs7.p7b", X509Certificate::FORMAT_AUTO,
180 return X509Certificate::CreateCertificateListFromBytes(cert_data.data(), in CreateCertificateListFromFile()
185 void CheckGoogleCert(const scoped_refptr<X509Certificate>& google_cert, in CheckGoogleCert()
188 ASSERT_NE(static_cast<X509Certificate*>(NULL), google_cert); in CheckGoogleCert()
231 int flags = X509Certificate::VERIFY_REV_CHECKING_ENABLED | in CheckGoogleCert()
232 X509Certificate::VERIFY_EV_CERT; in CheckGoogleCert()
239 scoped_refptr<X509Certificate> google_cert( in TEST()
240 X509Certificate::CreateFromBytes( in TEST()
249 scoped_refptr<X509Certificate> webkit_cert(X509Certificate::CreateFromBytes( in TEST()
252 ASSERT_NE(static_cast<X509Certificate*>(NULL), webkit_cert); in TEST()
296 int flags = X509Certificate::VERIFY_REV_CHECKING_ENABLED | in TEST()
297 X509Certificate::VERIFY_EV_CERT; in TEST()
312 scoped_refptr<X509Certificate> thawte_cert(X509Certificate::CreateFromBytes( in TEST()
315 ASSERT_NE(static_cast<X509Certificate*>(NULL), thawte_cert); in TEST()
358 int flags = X509Certificate::VERIFY_REV_CHECKING_ENABLED | in TEST()
359 X509Certificate::VERIFY_EV_CERT; in TEST()
366 flags = X509Certificate::VERIFY_EV_CERT; in TEST()
373 scoped_refptr<X509Certificate> paypal_null_cert( in TEST()
374 X509Certificate::CreateFromBytes( in TEST()
378 ASSERT_NE(static_cast<X509Certificate*>(NULL), paypal_null_cert); in TEST()
409 scoped_refptr<X509Certificate> unosoft_hu_cert( in TEST()
412 ASSERT_NE(static_cast<X509Certificate*>(NULL), unosoft_hu_cert); in TEST()
428 scoped_refptr<X509Certificate> google_cert( in TEST()
429 X509Certificate::CreateFromBytes( in TEST()
443 scoped_refptr<X509Certificate> paypal_null_cert( in TEST()
444 X509Certificate::CreateFromBytes( in TEST()
460 scoped_refptr<X509Certificate> server_cert = in TEST()
462 ASSERT_NE(static_cast<X509Certificate*>(NULL), server_cert); in TEST()
466 scoped_refptr<X509Certificate> intermediate_cert = in TEST()
468 ASSERT_NE(static_cast<X509Certificate*>(NULL), intermediate_cert); in TEST()
474 X509Certificate::OSCertHandles intermediates; in TEST()
476 scoped_refptr<X509Certificate> cert_chain = in TEST()
477 X509Certificate::CreateFromHandle(server_cert->os_cert_handle(), in TEST()
478 X509Certificate::SOURCE_FROM_NETWORK, in TEST()
491 scoped_refptr<X509Certificate> cert = in TEST()
493 ASSERT_NE(static_cast<X509Certificate*>(NULL), cert); in TEST()
497 scoped_refptr<X509Certificate> intermediate_cert = in TEST()
499 ASSERT_NE(static_cast<X509Certificate*>(NULL), intermediate_cert); in TEST()
501 X509Certificate::OSCertHandles intermediates; in TEST()
503 scoped_refptr<X509Certificate> cert_chain = in TEST()
504 X509Certificate::CreateFromHandle(cert->os_cert_handle(), in TEST()
505 X509Certificate::SOURCE_FROM_NETWORK, in TEST()
525 scoped_refptr<X509Certificate> cert = in TEST()
527 ASSERT_NE(static_cast<X509Certificate*>(NULL), cert); in TEST()
546 scoped_refptr<X509Certificate> cert = in TEST()
548 ASSERT_NE(static_cast<X509Certificate*>(NULL), cert); in TEST()
552 scoped_refptr<X509Certificate> intermediate_cert = in TEST()
554 ASSERT_NE(static_cast<X509Certificate*>(NULL), intermediate_cert); in TEST()
558 X509Certificate::OSCertHandles intermediates; in TEST()
560 scoped_refptr<X509Certificate> cert_chain = in TEST()
561 X509Certificate::CreateFromHandle(cert->os_cert_handle(), in TEST()
562 X509Certificate::SOURCE_FROM_NETWORK, in TEST()
586 scoped_refptr<X509Certificate> server_cert = in TEST()
588 ASSERT_NE(static_cast<X509Certificate*>(NULL), server_cert); in TEST()
618 X509Certificate::OSCertHandle google_cert_handle; in TEST()
622 google_cert_handle = X509Certificate::CreateOSCertHandleFromBytes( in TEST()
624 scoped_refptr<X509Certificate> cert1(X509Certificate::CreateFromHandle( in TEST()
625 google_cert_handle, X509Certificate::SOURCE_LONE_CERT_IMPORT, in TEST()
626 X509Certificate::OSCertHandles())); in TEST()
627 X509Certificate::FreeOSCertHandle(google_cert_handle); in TEST()
631 google_cert_handle = X509Certificate::CreateOSCertHandleFromBytes( in TEST()
633 scoped_refptr<X509Certificate> cert2(X509Certificate::CreateFromHandle( in TEST()
634 google_cert_handle, X509Certificate::SOURCE_LONE_CERT_IMPORT, in TEST()
635 X509Certificate::OSCertHandles())); in TEST()
636 X509Certificate::FreeOSCertHandle(google_cert_handle); in TEST()
642 google_cert_handle = X509Certificate::CreateOSCertHandleFromBytes( in TEST()
644 scoped_refptr<X509Certificate> cert3(X509Certificate::CreateFromHandle( in TEST()
645 google_cert_handle, X509Certificate::SOURCE_FROM_NETWORK, in TEST()
646 X509Certificate::OSCertHandles())); in TEST()
647 X509Certificate::FreeOSCertHandle(google_cert_handle); in TEST()
653 google_cert_handle = X509Certificate::CreateOSCertHandleFromBytes( in TEST()
655 scoped_refptr<X509Certificate> cert4(X509Certificate::CreateFromHandle( in TEST()
656 google_cert_handle, X509Certificate::SOURCE_FROM_NETWORK, in TEST()
657 X509Certificate::OSCertHandles())); in TEST()
658 X509Certificate::FreeOSCertHandle(google_cert_handle); in TEST()
662 google_cert_handle = X509Certificate::CreateOSCertHandleFromBytes( in TEST()
664 scoped_refptr<X509Certificate> cert5(X509Certificate::CreateFromHandle( in TEST()
665 google_cert_handle, X509Certificate::SOURCE_FROM_NETWORK, in TEST()
666 X509Certificate::OSCertHandles())); in TEST()
667 X509Certificate::FreeOSCertHandle(google_cert_handle); in TEST()
673 X509Certificate::OSCertHandle google_cert_handle = in TEST()
674 X509Certificate::CreateOSCertHandleFromBytes( in TEST()
676 X509Certificate::OSCertHandle thawte_cert_handle = in TEST()
677 X509Certificate::CreateOSCertHandleFromBytes( in TEST()
680 X509Certificate::OSCertHandles intermediates; in TEST()
685 scoped_refptr<X509Certificate> cert = X509Certificate::CreateFromHandle( in TEST()
687 X509Certificate::SOURCE_LONE_CERT_IMPORT, in TEST()
689 ASSERT_NE(static_cast<X509Certificate*>(NULL), cert.get()); in TEST()
691 X509Certificate::FreeOSCertHandle(google_cert_handle); in TEST()
692 X509Certificate::FreeOSCertHandle(thawte_cert_handle); in TEST()
698 scoped_refptr<X509Certificate> cert_from_pickle = in TEST()
699 X509Certificate::CreateFromPickle( in TEST()
700 pickle, &iter, X509Certificate::PICKLETYPE_CERTIFICATE_CHAIN); in TEST()
701 ASSERT_NE(static_cast<X509Certificate*>(NULL), cert_from_pickle); in TEST()
703 EXPECT_TRUE(X509Certificate::IsSameOSCert( in TEST()
710 scoped_refptr<X509Certificate> google_cert(X509Certificate::CreateFromBytes( in TEST()
713 scoped_refptr<X509Certificate> webkit_cert(X509Certificate::CreateFromBytes( in TEST()
747 scoped_refptr<X509Certificate> webkit_cert( in TEST()
748 X509Certificate::CreateFromBytes( in TEST()
751 scoped_refptr<X509Certificate> thawte_cert( in TEST()
752 X509Certificate::CreateFromBytes( in TEST()
755 scoped_refptr<X509Certificate> paypal_cert( in TEST()
756 X509Certificate::CreateFromBytes( in TEST()
760 X509Certificate::OSCertHandle google_handle; in TEST()
762 google_handle = X509Certificate::CreateOSCertHandleFromBytes( in TEST()
764 X509Certificate::OSCertHandles intermediates1; in TEST()
765 scoped_refptr<X509Certificate> cert1; in TEST()
766 cert1 = X509Certificate::CreateFromHandle( in TEST()
767 google_handle, X509Certificate::SOURCE_FROM_NETWORK, intermediates1); in TEST()
773 X509Certificate::OSCertHandles intermediates2; in TEST()
776 scoped_refptr<X509Certificate> cert2; in TEST()
777 cert2 = X509Certificate::CreateFromHandle( in TEST()
778 google_handle, X509Certificate::SOURCE_FROM_NETWORK, intermediates2); in TEST()
792 X509Certificate::OSCertHandles intermediates3; in TEST()
794 scoped_refptr<X509Certificate> cert3; in TEST()
795 cert3 = X509Certificate::CreateFromHandle( in TEST()
796 google_handle, X509Certificate::SOURCE_FROM_NETWORK, intermediates3); in TEST()
802 X509Certificate::FreeOSCertHandle(google_handle); in TEST()
811 scoped_refptr<X509Certificate> mit_davidben_cert( in TEST()
813 ASSERT_NE(static_cast<X509Certificate*>(NULL), mit_davidben_cert); in TEST()
828 scoped_refptr<X509Certificate> foaf_me_chromium_test_cert( in TEST()
830 ASSERT_NE(static_cast<X509Certificate*>(NULL), foaf_me_chromium_test_cert); in TEST()
859 scoped_refptr<X509Certificate> cert = in TEST()
860 X509Certificate::CreateSelfSigned( in TEST()
956 cert = X509Certificate::CreateSelfSigned( in TEST()
966 scoped_refptr<X509Certificate> cert = in TEST()
967 X509Certificate::CreateSelfSigned( in TEST()
1012 const X509Certificate* cert = certs[i]; in TEST_P()
1113 X509Certificate::VerifyHostname(test_data.hostname, cert_names)) in TEST_P()