Home
last modified time | relevance | path

Searched refs:certRefs (Results 1 – 6 of 6) sorted by relevance

/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLX509CertPath.java94 final long[] certRefs = new long[certs.length]; in getEncoded() local
105 certRefs[j] = certs[j].getContext(); in getEncoded()
110 return NativeCrypto.ASN1_seq_pack_X509(certRefs); in getEncoded()
112 return NativeCrypto.i2d_PKCS7(certRefs); in getEncoded()
146 final long[] certRefs; in fromPkiPathEncoding() local
148 certRefs = NativeCrypto.ASN1_seq_unpack_X509_bio(bis.getBioContext()); in fromPkiPathEncoding()
161 if (certRefs == null) { in fromPkiPathEncoding()
166 new ArrayList<OpenSSLX509Certificate>(certRefs.length); in fromPkiPathEncoding()
167 for (int i = certRefs.length - 1; i >= 0; i--) { in fromPkiPathEncoding()
168 if (certRefs[i] == 0) { in fromPkiPathEncoding()
[all …]
DOpenSSLX509CRL.java74 final long[] certRefs; in fromPkcs7DerInputStream() local
76 certRefs = NativeCrypto.d2i_PKCS7_bio(bis.getBioContext(), NativeCrypto.PKCS7_CRLS); in fromPkcs7DerInputStream()
83 final List<OpenSSLX509CRL> certs = new ArrayList<OpenSSLX509CRL>(certRefs.length); in fromPkcs7DerInputStream()
84 for (int i = 0; i < certRefs.length; i++) { in fromPkcs7DerInputStream()
85 if (certRefs[i] == 0) { in fromPkcs7DerInputStream()
88 certs.add(new OpenSSLX509CRL(certRefs[i])); in fromPkcs7DerInputStream()
113 final long[] certRefs; in fromPkcs7PemInputStream() local
115 certRefs = NativeCrypto.PEM_read_bio_PKCS7(bis.getBioContext(), in fromPkcs7PemInputStream()
123 final List<OpenSSLX509CRL> certs = new ArrayList<OpenSSLX509CRL>(certRefs.length); in fromPkcs7PemInputStream()
124 for (int i = 0; i < certRefs.length; i++) { in fromPkcs7PemInputStream()
[all …]
DOpenSSLX509Certificate.java92 final long[] certRefs; in fromPkcs7DerInputStream() local
94 certRefs = NativeCrypto.d2i_PKCS7_bio(bis.getBioContext(), NativeCrypto.PKCS7_CERTS); in fromPkcs7DerInputStream()
101 if (certRefs == null) { in fromPkcs7DerInputStream()
106 certRefs.length); in fromPkcs7DerInputStream()
107 for (int i = 0; i < certRefs.length; i++) { in fromPkcs7DerInputStream()
108 if (certRefs[i] == 0) { in fromPkcs7DerInputStream()
111 certs.add(new OpenSSLX509Certificate(certRefs[i])); in fromPkcs7DerInputStream()
139 final long[] certRefs; in fromPkcs7PemInputStream() local
141 certRefs = NativeCrypto.PEM_read_bio_PKCS7(bis.getBioContext(), in fromPkcs7PemInputStream()
150 certRefs.length); in fromPkcs7PemInputStream()
[all …]
DOpenSSLEngineImpl.java645 public void verifyCertificateChain(long sslSessionNativePtr, long[] certRefs, in verifyCertificateChain() argument
652 if (certRefs == null || certRefs.length == 0) { in verifyCertificateChain()
655 OpenSSLX509Certificate[] peerCertChain = new OpenSSLX509Certificate[certRefs.length]; in verifyCertificateChain()
656 for (int i = 0; i < certRefs.length; i++) { in verifyCertificateChain()
657 peerCertChain[i] = new OpenSSLX509Certificate(certRefs[i]); in verifyCertificateChain()
DOpenSSLSocketImpl.java535 public void verifyCertificateChain(long sslSessionNativePtr, long[] certRefs, String authMethod) in verifyCertificateChain() argument
542 if (certRefs == null || certRefs.length == 0) { in verifyCertificateChain()
545 OpenSSLX509Certificate[] peerCertChain = new OpenSSLX509Certificate[certRefs.length]; in verifyCertificateChain()
546 for (int i = 0; i < certRefs.length; i++) { in verifyCertificateChain()
547 peerCertChain[i] = new OpenSSLX509Certificate(certRefs[i]); in verifyCertificateChain()
/external/conscrypt/src/test/java/org/conscrypt/
DNativeCryptoTest.java152 final long[] certRefs = new long[certs.length]; in getCertificateReferences() local
154 certRefs[i] = certs[i].getContext(); in getCertificateReferences()
156 return certRefs; in getCertificateReferences()