/external/chromium_org/net/cert/ |
test_root_certs.cc | 30 return X509Certificate::CreateCertificateListFromBytes( 31 raw_cert.data(), raw_cert.length(), X509Certificate::FORMAT_AUTO); 60 ScopedTestRoot::ScopedTestRoot(X509Certificate* cert) { 68 void ScopedTestRoot::Reset(X509Certificate* cert) {
|
x509_certificate.h | 45 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; 47 // X509Certificate represents a X.509 certificate, which is comprised a 51 class NET_EXPORT X509Certificate 52 : public base::RefCountedThreadSafe<X509Certificate> { 81 // Predicate functor used in maps when X509Certificate is used as the key. 84 bool operator()(const scoped_refptr<X509Certificate>& lhs, 85 const scoped_refptr<X509Certificate>& rhs) const; 134 // Creates a X509Certificate from the ground up. Used by tests that simulate 136 X509Certificate(const std::string& subject, const std::string& issuer, 139 // Create an X509Certificate from a handle to the certificate object in th [all...] |
x509_util_nss.h | 46 X509Certificate::OSCertHandles CreateOSCertHandlesFromBytes( 49 X509Certificate::Format format); 53 X509Certificate::OSCertHandle ReadOSCertHandleFromPickle( 61 X509Certificate::PublicKeyType* type);
|
cert_verify_proc_android.cc | 70 scoped_refptr<X509Certificate> verified_cert = 71 X509Certificate::CreateFromDERCertChain(verified_chain_pieces); 77 X509Certificate::OSCertHandles chain; 78 const X509Certificate::OSCertHandles& intermediates = 125 bool GetChainDEREncodedBytes(X509Certificate* cert, 127 X509Certificate::OSCertHandle cert_handle = cert->os_cert_handle(); 128 X509Certificate::OSCertHandles cert_handles = 137 for (X509Certificate::OSCertHandles::const_iterator it = 140 if(!X509Certificate::GetDEREncoded(*it, &cert_bytes)) 158 X509Certificate* cert [all...] |
x509_certificate_openssl.cc | 42 X509Certificate::OSCertHandles* handles) { 53 X509Certificate::DupOSCertHandle(sk_X509_value(certs, i)); 72 void ParsePrincipal(X509Certificate::OSCertHandle cert, 97 void ParseSubjectAltName(X509Certificate::OSCertHandle cert, 177 X509Certificate::OSCertHandle X509Certificate::DupOSCertHandle( 184 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { 191 void X509Certificate::Initialize() { 202 // of X509Certificate exposes, to ensure callers get the proper (DER) 218 void X509Certificate::ResetCertStore() [all...] |
x509_certificate_mac.cc | 46 bool IsCertIssuerInEncodedList(X509Certificate::OSCertHandle cert_handle, 148 X509Certificate::OSCertHandles* output) { 201 void X509Certificate::Initialize() { 219 bool X509Certificate::IsIssuedByEncoded( 232 void X509Certificate::GetSubjectAltName( 274 bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, 285 bool X509Certificate::IsSameOSCert(X509Certificate::OSCertHandle a, 286 X509Certificate::OSCertHandle b) [all...] |
x509_certificate_win.cc | 77 X509Certificate::OSCertHandles* results) { 100 X509Certificate::OSCertHandles ParsePKCS7(const char* data, size_t length) { 101 X509Certificate::OSCertHandles results; 147 void X509Certificate::Initialize() { 168 void X509Certificate::GetSubjectAltName( 201 PCCERT_CONTEXT X509Certificate::CreateOSCertChainForCert() const { 236 bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle, 248 bool X509Certificate::IsSameOSCert(X509Certificate::OSCertHandle a [all...] |
nss_cert_database.cc | 54 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE { 58 virtual void OnCertRemoved(const X509Certificate* cert) OVERRIDE { 62 virtual void OnCACertChanged(const X509Certificate* cert) OVERRIDE { 75 const scoped_refptr<X509Certificate>& cert, 208 X509Certificate* NSSCertDatabase::FindRootInList( 215 X509Certificate* cert0 = certificates[0].get(); 216 X509Certificate* cert1 = certificates[1].get(); 217 X509Certificate* certn_2 = certificates[certificates.size() - 2].get(); 218 X509Certificate* certn_1 = certificates[certificates.size() - 1].get(); 235 X509Certificate* root = FindRootInList(certificates) [all...] |
x509_util_ios.cc | 58 return X509Certificate::CreateOSCertHandleFromBytes( 63 X509Certificate* CreateCertFromNSSHandles( 79 X509Certificate* cert = NULL; 81 cert = X509Certificate::CreateFromHandle(os_server_cert, 117 NSSCertChain::NSSCertChain(X509Certificate* certificate) { 121 const X509Certificate::OSCertHandles& cert_intermediates =
|
multi_log_ct_verifier_unittest.cc | 48 chain_ = X509Certificate::CreateFromBytes( 56 X509Certificate::FORMAT_AUTO); 130 bool VerifySinglePrecertificateChain(scoped_refptr<X509Certificate> chain, 140 bool VerifySinglePrecertificateChain(scoped_refptr<X509Certificate> chain) { 153 bool CheckPrecertificateVerification(scoped_refptr<X509Certificate> chain) { 193 scoped_refptr<X509Certificate> chain_; 194 scoped_refptr<X509Certificate> embedded_sct_chain_; 202 scoped_refptr<X509Certificate> chain( 205 X509Certificate::FORMAT_AUTO)); 211 scoped_refptr<X509Certificate> chain(CreateCertificateChainFromFile [all...] |
/external/chromium_org/net/test/ |
cert_test_util.h | 42 bool ImportClientCertToSlot(const scoped_refptr<X509Certificate>& cert, 45 scoped_refptr<X509Certificate> ImportClientCertAndKeyFromFile( 59 // a new X509Certificate. The first certificate in the chain will be used for 62 scoped_refptr<X509Certificate> CreateCertificateChainFromFile( 71 scoped_refptr<X509Certificate> ImportCertFromFile(const base::FilePath& certs_dir,
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
PinFailureLogger.java | 20 import java.security.cert.X509Certificate; 33 List<X509Certificate> chain) { 46 List<X509Certificate> chain) { 54 for (X509Certificate cert : chain) {
|
PinListEntry.java | 22 import java.security.cert.X509Certificate; 96 public boolean isChainValid(List<X509Certificate> chain) { 99 for (X509Certificate cert : chain) { 110 private static String getFingerprint(X509Certificate cert) { 141 private boolean chainContainsUserCert(List<X509Certificate> chain) { 145 for (X509Certificate cert : chain) { 153 private void logPinFailure(List<X509Certificate> chain, boolean containsUserCert) {
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
SubjectAlternativeNameTest.java | 23 import java.security.cert.X509Certificate; 57 X509Certificate javaCertificate = bouncycastleToJava(root); 66 private X509Certificate bouncycastleToJava(Certificate certificate) throws Exception { 69 return (X509Certificate) factory.generateCertificate(new ByteArrayInputStream(encoded));
|
/external/conscrypt/src/test/java/org/conscrypt/ |
CertPinManagerTest.java | 21 import java.security.cert.X509Certificate; 32 private X509Certificate[] chain; 33 private List<X509Certificate> shortChain; 34 private List<X509Certificate> longChain; 48 private static String getFingerprint(X509Certificate cert) throws NoSuchAlgorithmException { 60 chain = (X509Certificate[]) pke.getCertificateChain(); 61 X509Certificate root = chain[2]; 62 X509Certificate server = chain[0]; 65 shortChain = new ArrayList<X509Certificate>(); 67 longChain = new ArrayList<X509Certificate>(); [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
HttpsURLConnection.java | 24 import java.security.cert.X509Certificate; 233 if (certs == null || certs.length == 0 || (!(certs[0] instanceof X509Certificate))) { 236 return ((X509Certificate) certs[0]).getSubjectX500Principal(); 249 if (certs == null || certs.length == 0 || (!(certs[0] instanceof X509Certificate))) { 252 return ((X509Certificate) certs[0]).getSubjectX500Principal();
|
/libcore/luni/src/test/java/libcore/javax/security/auth/x500/ |
X500PrincipalTest.java | 21 import java.security.cert.X509Certificate; 63 X509Certificate certBC = (X509Certificate) 65 X509Certificate certOpenSSL = (X509Certificate)
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertPathBuilderTestPKIX.java | 29 import java.security.cert.X509Certificate; 49 X509Certificate selfSignedcertificate = 50 (X509Certificate) certificateFactory.generateCertificate( 82 X509Certificate x509Certificate = (X509Certificate) certificate; 83 X500Principal subjectX500Principal = x509Certificate
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestTrustManager.java | 25 import java.security.cert.X509Certificate; 61 public void checkClientTrusted(X509Certificate[] chain, String authType) 82 public void checkServerTrusted(X509Certificate[] chain, String authType) 110 public X509Certificate[] getAcceptedIssuers() { 111 X509Certificate[] result = trustManager.getAcceptedIssuers();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
PKIXCertPath.java | 15 import java.security.cert.X509Certificate; 76 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal(); 81 X509Certificate cert = (X509Certificate)certs.get(i); 85 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal(); 105 X509Certificate cert = (X509Certificate)certs.get(i); 112 X509Certificate c = (X509Certificate)certs.get(j); 135 issuer = ((X509Certificate)retList.get(i)).getIssuerX500Principal() [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
JarUtils.java | 36 import java.security.cert.X509Certificate; 82 X509Certificate[] certs = new X509Certificate[encCerts.size()]; 88 certs[i++] = new VerbatimX509Certificate((X509Certificate) cf.generateCertificate(is), 231 private static X509Certificate[] createChain(X509Certificate signer, 232 X509Certificate[] candidates) { 237 return new X509Certificate[] { signer }; 240 ArrayList<X509Certificate> chain = new ArrayList<X509Certificate>(candidates.length + 1) [all...] |
/external/chromium_org/net/http/ |
disk_based_cert_cache_unittest.cc | 62 X509Certificate::FreeOSCertHandle(cert_handle_); 76 const X509Certificate::OSCertHandle& cert_handle() const { 81 void OnGetComplete(const X509Certificate::OSCertHandle handle) { 83 cert_handle_ = X509Certificate::DupOSCertHandle(handle); 88 X509Certificate::OSCertHandle cert_handle_; 133 scoped_refptr<X509Certificate> cert( 137 X509Certificate::GetDEREncoded(cert->os_cert_handle(), &write_data); 163 scoped_refptr<X509Certificate> cert( 167 X509Certificate::GetDEREncoded(cert->os_cert_handle(), &write_data); 178 X509Certificate::OSCertHandle cached_cert_handle [all...] |
/external/chromium_org/chrome/browser/ssl/ |
ssl_add_certificate.cc | 37 net::X509Certificate* cert) { 44 explicit SSLAddCertificateInfoBarDelegate(net::X509Certificate* cert) 85 scoped_refptr<net::X509Certificate> cert_; 113 net::X509Certificate* cert) { 137 scoped_refptr<net::X509Certificate> cert; 139 cert = net::X509Certificate::CreateFromBytes(
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLSessionImpl.java | 23 import java.security.cert.X509Certificate; 41 final X509Certificate[] localCertificates; 42 final X509Certificate[] peerCertificates; 46 private volatile javax.security.cert.X509Certificate[] peerCertificateChain; 59 protected OpenSSLSessionImpl(long sslSessionNativePointer, X509Certificate[] localCertificates, 60 X509Certificate[] peerCertificates, String peerHost, int peerPort, 77 X509Certificate[] peerCertificates, 208 public javax.security.cert.X509Certificate[] getPeerCertificateChain() 211 javax.security.cert.X509Certificate[] result = peerCertificateChain; 223 private javax.security.cert.X509Certificate[] createPeerCertificateChain( [all...] |
/external/chromium_org/chrome/common/net/ |
x509_certificate_model_unittest.cc | 19 scoped_refptr<net::X509Certificate> cert( 27 scoped_refptr<net::X509Certificate> punycode_cert( 35 scoped_refptr<net::X509Certificate> no_cn_cert( 64 scoped_refptr<net::X509Certificate> no_cn_cert2(net::ImportCertFromFile( 73 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( 99 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( 114 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( 125 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( 183 scoped_refptr<net::X509Certificate> cert(net::ImportCertFromFile( 214 scoped_refptr<net::X509Certificate> cert [all...] |