/libcore/luni/src/main/java/javax/net/ssl/ |
HttpsURLConnection.java | 225 Certificate[] certs = getServerCertificates(); local 226 if (certs == null || certs.length == 0 || (!(certs[0] instanceof X509Certificate))) { 229 return ((X509Certificate) certs[0]).getSubjectX500Principal(); 241 Certificate[] certs = getLocalCertificates(); local 242 if (certs == null || certs.length == 0 || (!(certs[0] instanceof X509Certificate))) { 245 return ((X509Certificate) certs[0]).getSubjectX500Principal() [all...] |
DefaultHostnameVerifier.java | 61 Certificate[] certs; local 63 certs = session.getPeerCertificates(); 68 X509Certificate x509 = (X509Certificate) certs[0];
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
CertificateMessage.java | 39 X509Certificate[] certs; field in class:CertificateMessage 60 certs = new X509Certificate[0]; 86 certs = certsList.toArray(new X509Certificate[certsList.size()]); 87 this.length = 3 + 3 * certs.length + enc_size; 96 * @param certs 98 public CertificateMessage(X509Certificate[] certs) { 99 if (certs == null) { 100 this.certs = new X509Certificate[0]; 105 this.certs = certs; [all...] |
/external/wpa_supplicant/tests/ |
test_x509v3.c | 28 struct x509_certificate *certs = NULL, *last = NULL, *cert; local 54 if (certs == NULL) 55 certs = cert; 62 if (x509_certificate_chain_validate(last, certs, &reason) < 0) {
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
test_x509v3.c | 28 struct x509_certificate *certs = NULL, *last = NULL, *cert; local 54 if (certs == NULL) 55 certs = cert; 62 if (x509_certificate_chain_validate(last, certs, &reason) < 0) {
|
/external/chromium/net/base/ |
cert_database_nss_unittest.cc | 70 CertificateList certs = ListCertsInSlot(slot); local 71 for (size_t i = 0; i < certs.size(); ++i) { 72 if (!cert_db.DeleteCertAndKey(certs[i])) 85 bool ReadCertIntoList(const std::string& name, CertificateList* certs) { 95 certs->push_back(cert); 145 CertificateList certs; local 146 cert_db_.ListCerts(&certs); 149 EXPECT_LT(0U, certs.size()); 189 CertificateList certs = local 192 ASSERT_EQ(1U, certs.size()) 221 CertificateList certs = local 252 CertificateList certs = local 283 CertificateList certs = local 304 CertificateList certs; local 330 CertificateList certs; local 367 CertificateList certs; local 387 CertificateList certs; local 409 CertificateList certs = local 440 CertificateList certs = local 470 CertificateList certs; local [all...] |
cert_database_openssl.cc | 39 void CertDatabase::ListCerts(CertificateList* certs) { 70 int CertDatabase::ExportToPKCS12(const CertificateList& certs,
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
PKIXCertPath.java | 61 * @param certs 64 List certs) 66 if (certs.size() < 2) 68 return certs; 71 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal(); 74 for (int i = 1; i != certs.size(); i++) 76 X509Certificate cert = (X509Certificate)certs.get(i); 80 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal(); 91 return certs; 95 List retList = new ArrayList(certs.size()) [all...] |
RFC3280CertPathUtilities.java | 459 // get CRL signing certs 519 List certs = builder.build(params).getCertPath().getCertificates(); local 521 validKeys.add(CertPathValidatorUtilities.getNextWorkingKey(certs, 0)); 867 List certs = certPath.getCertificates() local 1051 List certs = certPath.getCertificates(); local 1127 List certs = certPath.getCertificates(); local 1156 List certs = certPath.getCertificates(); local 1257 List certs = certPath.getCertificates(); local 1460 List certs = certPath.getCertificates(); local 1538 List certs = certPath.getCertificates(); local 1593 List certs = certPath.getCertificates(); local 1647 List certs = certPath.getCertificates(); local 2032 List certs = certPath.getCertificates(); local 2066 List certs = certPath.getCertificates(); local 2101 List certs = certPath.getCertificates(); local 2124 List certs = certPath.getCertificates(); local 2163 List certs = certPath.getCertificates(); local 2186 List certs = certPath.getCertificates(); local 2217 List certs = certPath.getCertificates(); local 2240 List certs = certPath.getCertificates(); local 2263 List certs = certPath.getCertificates(); local 2315 List certs = certPath.getCertificates(); local 2369 List certs = certPath.getCertificates(); local [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
CertificateMessageTest.java | 64 assertEquals("incorrect message", 0, message.certs.length); 76 assertEquals("incorrect message_2", 0, message_2.certs.length); 93 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] 104 assertEquals("Incorrect message decoding", message.certs.length, message_2.certs.length); 105 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] 106 .getEncoded(), message_2.certs[0].getEncoded()));
|
/external/openssl/crypto/ocsp/ |
ocsp_vfy.c | 63 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs, STACK_OF(X509) *certs, 65 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id); 70 static int ocsp_req_find_signer(X509 **psigner, OCSP_REQUEST *req, X509_NAME *nm, STACK_OF(X509) *certs, 75 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, 82 ret = ocsp_find_signer(&signer, bs, certs, st, flags); 108 init_res = X509_STORE_CTX_init(&ctx, st, signer, bs->certs); 162 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs, STACK_OF(X509) *certs, 167 if ((signer = ocsp_find_signer_sk(certs, rid))) 173 (signer = ocsp_find_signer_sk(bs->certs, rid))) 185 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id [all...] |
/libcore/luni/src/main/java/java/security/ |
CodeSource.java | 28 public CodeSource(URL location, Certificate[] certs) { }
|
UnresolvedPermission.java | 27 public UnresolvedPermission(String type, String name, String actions, Certificate[] certs) {
|
/external/chromium/net/socket/ |
ssl_host_info.cc | 23 certs.clear(); 94 state->certs.push_back(der_cert); 113 if (!state->certs.empty()) { 114 std::vector<base::StringPiece> der_certs(state->certs.size()); 115 for (size_t i = 0; i < state->certs.size(); i++) 116 der_certs[i] = state->certs[i]; 147 i = state_.certs.begin(); i != state_.certs.end(); i++) { 155 if (!p.WriteInt(state_.certs.size())) 159 i = state_.certs.begin(); i != state_.certs.end(); i++) [all...] |
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
TestCertUtils.java | 69 * real chain of certificates, it's just an array of 3 certs. The method 104 Certificate[] certs = new Certificate[howMany]; local 106 certs[i] = new TestCertificate(Integer.toString(startID + i)); 108 return new TestCertPath(certs); 155 private Certificate[] certs; field in class:TestCertUtils.TestCertPath 165 certs = getCertChain(); 173 * @param certs 175 public TestCertPath(Certificate[] certs) { 177 this.certs = certs; [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
TestCertUtils.java | 70 * real chain of certificates, it's just an array of 3 certs. The method 105 Certificate[] certs = new Certificate[howMany]; local 107 certs[i] = new TestCertificate(Integer.toString(startID + i)); 109 return new TestCertPath(certs); 156 private Certificate[] certs; field in class:TestCertUtils.TestCertPath 166 certs = getCertChain(); 174 * @param certs 176 public TestCertPath(Certificate[] certs) { 178 this.certs = certs; [all...] |
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
HandshakeCompletedEventTest.java | 101 Certificate[] certs = event.getLocalCertificates(); local 103 if (certs == null && ses_certs == null) { 106 if (certs == null || ses_certs == null) { 109 for (int i = 0; i < certs.length; i++) { 110 if (certs[i] != ses_certs[i]) {
|
/external/openssl/apps/ |
nseq.c | 133 seq->certs = sk_X509_new_null(); 135 sk_X509_push(seq->certs,x509); 137 if(!sk_X509_num(seq->certs)) 139 BIO_printf (bio_err, "Error reading certs file %s\n", infile); 154 for(i = 0; i < sk_X509_num(seq->certs); i++) { 155 x509 = sk_X509_value(seq->certs, i);
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertificateTest.java | 696 private X509Certificate[] certs= new X509Certificate[3]; field in class:CertificateTest [all...] |
/build/tools/releasetools/ |
check_target_files_signatures | 111 self.certs = {} 114 if cert in self.certs: 116 self.certs[cert] = self.certs[cert] + "," + name 121 self.certs[cert] = name 125 return self.certs.get(cert, None) 131 certs = [os.path.join(dirpath, i) 133 if certs: 134 to_load.extend(certs) 214 self.certs = frozenset(out [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
JarUtils.java | 80 X509Certificate[] certs = new X509Certificate[encCerts.size()]; local 83 certs[i++] = new X509CertImpl(encCert); 102 for (i = 0; i < certs.length; i++) { 103 if (issuer.equals(certs[i].getIssuerDN()) && 104 snum.equals(certs[i].getSerialNumber())) { 109 if (i == certs.length) { // No issuer certificate found 113 if (certs[issuerSertIndex].hasUnsupportedCriticalExtension()) { 139 sig.initVerify(certs[issuerSertIndex]); 175 return createChain(certs[issuerSertIndex], certs); [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
X509CertPathImpl.java | 101 public X509CertPathImpl(List certs) throws CertificateException { 103 int size = certs.size(); 106 Object cert = certs.get(i); 119 * @param certs - the list of certificates 124 private X509CertPathImpl(List certs, int type, byte[] encoding) { 133 certificates = certs; 174 List<Certificate> certs = sd.getCertificates(); local 175 if (certs == null) { 177 certs = new ArrayList<Certificate>(); 180 for (Certificate cert : certs) { 227 List<Certificate> certs = sd.getCertificates(); local [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
mySSLSession.java | 28 private Certificate[] certs = null; field in class:mySSLSession 32 certs = null; 41 certs = TestCertUtils.getCertChain(); 46 certs = xc; 90 if (certs == null) { 93 return certs;
|
/external/openssl/crypto/asn1/ |
nsseq.c | 80 ASN1_EXP_SEQUENCE_OF_OPT(NETSCAPE_CERT_SEQUENCE, certs, X509, 0)
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
CredentialHelper.java | 103 ArrayList<byte[]> certs = new ArrayList<byte[]>(mCaCerts.size() + 1); local 105 certs.add(mUserCert.getEncoded()); 108 certs.add(cert.getEncoded()); 110 outStates.putByteArray(CERTS_KEY, Util.toBytes(certs)); 124 ArrayList<byte[]> certs = Util.fromBytes(savedStates.getByteArray(CERTS_KEY)); local 125 for (byte[] cert : certs) { 332 Certificate[] certs = entry.getCertificateChain(); local 333 Log.d(TAG, "# certs extracted = " + certs.length); 334 mCaCerts = new ArrayList<X509Certificate>(certs.length) [all...] |