/external/chromium/net/base/ |
D | cert_database_nss_unittest.cc | 70 CertificateList certs = ListCertsInSlot(slot); in CleanupSlotContents() local 71 for (size_t i = 0; i < certs.size(); ++i) { in CleanupSlotContents() 72 if (!cert_db.DeleteCertAndKey(certs[i])) in CleanupSlotContents() 85 bool ReadCertIntoList(const std::string& name, CertificateList* certs) { in ReadCertIntoList() argument 95 certs->push_back(cert); in ReadCertIntoList() 145 CertificateList certs; in TEST_F() local 146 cert_db_.ListCerts(&certs); in TEST_F() 149 EXPECT_LT(0U, certs.size()); in TEST_F() 189 CertificateList certs = in TEST_F() local 192 ASSERT_EQ(1U, certs.size()); in TEST_F() [all …]
|
/external/okhttp/src/main/java/com/squareup/okhttp/ |
D | OkHttpsConnection.java | 229 Certificate[] certs = getServerCertificates(); in getPeerPrincipal() local 230 if (certs == null || certs.length == 0 || (!(certs[0] instanceof X509Certificate))) { in getPeerPrincipal() 233 return ((X509Certificate) certs[0]).getSubjectX500Principal(); in getPeerPrincipal() 245 Certificate[] certs = getLocalCertificates(); in getLocalPrincipal() local 246 if (certs == null || certs.length == 0 || (!(certs[0] instanceof X509Certificate))) { in getLocalPrincipal() 249 return ((X509Certificate) certs[0]).getSubjectX500Principal(); in getLocalPrincipal()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | PKIXCertPath.java | 67 List certs) in sortCerts() argument 69 if (certs.size() < 2) in sortCerts() 71 return certs; in sortCerts() 74 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal(); in sortCerts() 77 for (int i = 1; i != certs.size(); i++) in sortCerts() 79 X509Certificate cert = (X509Certificate)certs.get(i); in sortCerts() 83 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal(); in sortCerts() 94 return certs; in sortCerts() 98 List retList = new ArrayList(certs.size()); in sortCerts() 99 List orig = new ArrayList(certs); in sortCerts() [all …]
|
/external/openssl/crypto/ocsp/ |
D | 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 …c 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, in OCSP_basic_verify() argument 82 ret = ocsp_find_signer(&signer, bs, certs, st, flags); in OCSP_basic_verify() 108 init_res = X509_STORE_CTX_init(&ctx, st, signer, bs->certs); in OCSP_basic_verify() 162 static int ocsp_find_signer(X509 **psigner, OCSP_BASICRESP *bs, STACK_OF(X509) *certs, in ocsp_find_signer() argument 167 if ((signer = ocsp_find_signer_sk(certs, rid))) in ocsp_find_signer() 173 (signer = ocsp_find_signer_sk(bs->certs, rid))) in ocsp_find_signer() 185 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id) in ocsp_find_signer_sk() argument [all …]
|
D | ocsp_srv.c | 200 if (!resp->certs && !(resp->certs = sk_X509_new_null())) in OCSP_basic_add1_cert() 203 if(!sk_X509_push(resp->certs, cert)) return 0; in OCSP_basic_add1_cert() 210 STACK_OF(X509) *certs, unsigned long flags) in OCSP_basic_sign() 225 for (i = 0; i < sk_X509_num(certs); i++) in OCSP_basic_sign() 227 X509 *tmpcert = sk_X509_value(certs, i); in OCSP_basic_sign()
|
D | ocsp_cl.c | 129 if (!sig->certs && !(sig->certs = sk_X509_new_null())) in OCSP_request_add1_cert() 132 if(!sk_X509_push(sig->certs, cert)) return 0; in OCSP_request_add1_cert() 147 STACK_OF(X509) *certs, in OCSP_request_sign() 171 for (i = 0; i < sk_X509_num(certs); i++) in OCSP_request_sign() 173 x = sk_X509_value(certs, i); in OCSP_request_sign()
|
D | ocsp_prn.c | 170 for (i=0; i<sk_X509_num(sig->certs); i++) in OCSP_REQUEST_print() 172 X509_print(bp, sk_X509_value(sig->certs,i)); in OCSP_REQUEST_print() 173 PEM_write_bio_X509(bp,sk_X509_value(sig->certs,i)); in OCSP_REQUEST_print() 280 for (i=0; i<sk_X509_num(br->certs); i++) in OCSP_RESPONSE_print() 282 X509_print(bp, sk_X509_value(br->certs,i)); in OCSP_RESPONSE_print() 283 PEM_write_bio_X509(bp,sk_X509_value(br->certs,i)); in OCSP_RESPONSE_print()
|
/external/chromium/net/socket/ |
D | ssl_host_info.cc | 23 certs.clear(); in Clear() 94 state->certs.push_back(der_cert); in ParseInner() 113 if (!state->certs.empty()) { in ParseInner() 114 std::vector<base::StringPiece> der_certs(state->certs.size()); in ParseInner() 115 for (size_t i = 0; i < state->certs.size(); i++) in ParseInner() 116 der_certs[i] = state->certs[i]; in ParseInner() 147 i = state_.certs.begin(); i != state_.certs.end(); i++) { in Serialize() 155 if (!p.WriteInt(state_.certs.size())) in Serialize() 159 i = state_.certs.begin(); i != state_.certs.end(); i++) { in Serialize() 181 DCHECK(!state_.certs.empty()); in WaitForCertVerification()
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | TestCertUtils.java | 104 Certificate[] certs = new Certificate[howMany]; in genCertPath() local 106 certs[i] = new TestCertificate(Integer.toString(startID + i)); in genCertPath() 108 return new TestCertPath(certs); in genCertPath() 155 private Certificate[] certs; field in TestCertUtils.TestCertPath 165 certs = getCertChain(); in TestCertPath() 175 public TestCertPath(Certificate[] certs) { in TestCertPath() argument 177 this.certs = certs; in TestCertPath() 184 return Arrays.asList(certs); in getCertificates() 214 if( certs == null ) { in toString() 218 buf.append(certs.length).append("\n"); in toString() [all …]
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | CertificateMessageTest.java | 64 assertEquals("incorrect message", 0, message.certs.length); in testCertificateMessage1() 76 assertEquals("incorrect message_2", 0, message_2.certs.length); in testCertificateMessage1() 93 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] in testCertificateMessage2() 104 assertEquals("Incorrect message decoding", message.certs.length, message_2.certs.length); in testCertificateMessage2() 105 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] in testCertificateMessage2() 106 .getEncoded(), message_2.certs[0].getEncoded())); in testCertificateMessage2()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | CMSUtils.java | 64 List certs = new ArrayList(); in getCertificatesFromStore() local 72 certs.add(X509CertificateStructure.getInstance( in getCertificatesFromStore() 76 return certs; in getCertificatesFromStore() 95 List certs = new ArrayList(); in getCertificatesFromStore() local 103 certs.add(c.toASN1Structure()); in getCertificatesFromStore() 106 return certs; in getCertificatesFromStore() 117 List certs = new ArrayList(); in getAttributeCertificatesFromStore() local 125 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure())); in getAttributeCertificatesFromStore() 128 return certs; in getAttributeCertificatesFromStore() 169 List certs = new ArrayList(); in getCRLsFromStore() local [all …]
|
D | CMSSignedHelper.java | 186 List certs = new ArrayList(); in createAttributeStore() local 204 … certs.add(new X509V2AttributeCertificate(ASN1Sequence.getInstance(tagged, false).getEncoded())); in createAttributeStore() 219 … "AttributeCertificate/" +type, new X509CollectionStoreParameters(certs), provider); in createAttributeStore() 233 List certs = new ArrayList(); in createCertificateStore() local 237 addCertsFromSet(certs, certSet, provider); in createCertificateStore() 243 "Certificate/" +type, new X509CollectionStoreParameters(certs), provider); in createCertificateStore() 315 private void addCertsFromSet(List certs, ASN1Set certSet, Provider provider) in addCertsFromSet() argument 345 certs.add(cf.generateCertificate( in addCertsFromSet()
|
/external/ipsec-tools/src/racoon/ |
D | eaytest.c | 225 char **certs; local 342 certs = getcerts(certpath); 350 certs = getcerts(NULL); 360 while (*certs != NULL) { 368 c.v = *certs; 369 c.l = strlen(*certs); 406 certs++; 415 char **certs = NULL, **p; local 551 p = (char **)realloc(certs, (n + 1) * sizeof(certs)); 554 certs = p; [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/tests/ |
D | test_x509v3.c | 28 struct x509_certificate *certs = NULL, *last = NULL, *cert; in main() local 54 if (certs == NULL) in main() 55 certs = cert; in main() 62 if (x509_certificate_chain_validate(last, certs, &reason) < 0) { in main()
|
/external/openssl/apps/ |
D | nseq.c | 133 seq->certs = sk_X509_new_null(); in MAIN() 135 sk_X509_push(seq->certs,x509); in MAIN() 137 if(!sk_X509_num(seq->certs)) in MAIN() 154 for(i = 0; i < sk_X509_num(seq->certs); i++) { in MAIN() 155 x509 = sk_X509_value(seq->certs, i); in MAIN()
|
D | pkcs7.c | 245 STACK_OF(X509) *certs=NULL; in MAIN() 252 certs=p7->d.sign->cert; in MAIN() 256 certs=p7->d.signed_and_enveloped->cert; in MAIN() 263 if (certs != NULL) in MAIN() 267 for (i=0; i<sk_X509_num(certs); i++) in MAIN() 269 x=sk_X509_value(certs,i); in MAIN()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | RFC3280CertPathUtilities.java | 518 List certs = builder.build(params).getCertPath().getCertificates(); in processCRLF() local 520 validKeys.add(CertPathValidatorUtilities.getNextWorkingKey(certs, 0)); in processCRLF() 866 List certs = certPath.getCertificates(); in prepareCertB() local 867 X509Certificate cert = (X509Certificate)certs.get(index); in prepareCertB() 868 int n = certs.size(); in prepareCertB() 1050 List certs = certPath.getCertificates(); in prepareNextCertA() local 1051 X509Certificate cert = (X509Certificate)certs.get(index); in prepareNextCertA() 1126 List certs = certPath.getCertificates(); in processCertE() local 1127 X509Certificate cert = (X509Certificate)certs.get(index); in processCertE() 1155 List certs = certPath.getCertificates(); in processCertBC() local [all …]
|
D | PKIXCertPathValidatorSpi.java | 77 List certs = certPath.getCertificates(); in engineValidate() local 78 int n = certs.size(); in engineValidate() 80 if (certs.isEmpty()) in engineValidate() 86 X509Certificate cert = (X509Certificate) certs.get(0); in engineValidate() 117 … trust = CertPathValidatorUtilities.findTrustAnchor((X509Certificate) certs.get(certs.size() - 1), in engineValidate() 122 throw new CertPathValidatorException(e.getMessage(), e, certPath, certs.size() - 1); in engineValidate() 256 && !paramsPKIX.getTargetConstraints().match((X509Certificate) certs.get(0))) in engineValidate() 274 for (index = certs.size() - 1; index >= 0; index--) in engineValidate() 298 cert = (X509Certificate) certs.get(index); in engineValidate() 299 boolean verificationAlreadyPerformed = (index == certs.size() - 1); in engineValidate()
|
D | X509CRLObject.java | 277 Enumeration certs = c.getRevokedCertificateEnumeration(); in loadCRLEntries() local 280 while (certs.hasMoreElements()) in loadCRLEntries() 282 TBSCertList.CRLEntry entry = (TBSCertList.CRLEntry)certs.nextElement(); in loadCRLEntries() 301 Enumeration certs = c.getRevokedCertificateEnumeration(); in getRevokedCertificate() local 304 while (certs.hasMoreElements()) in getRevokedCertificate() 306 TBSCertList.CRLEntry entry = (TBSCertList.CRLEntry)certs.nextElement(); in getRevokedCertificate() 523 TBSCertList.CRLEntry[] certs = c.getRevokedCertificates(); in isRevoked() local 527 if (certs != null) in isRevoked() 531 for (int i = 0; i < certs.length; i++) in isRevoked() 533 if (isIndirect && certs[i].hasExtensions()) in isRevoked() [all …]
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
D | HandshakeCompletedEventTest.java | 101 Certificate[] certs = event.getLocalCertificates(); in testGetLocalCertificates() local 103 if (certs == null && ses_certs == null) { in testGetLocalCertificates() 106 if (certs == null || ses_certs == null) { in testGetLocalCertificates() 109 for (int i = 0; i < certs.length; i++) { in testGetLocalCertificates() 110 if (certs[i] != ses_certs[i]) { in testGetLocalCertificates()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertificateFactory_ImplTest.java | 348 private void verifyCertificates(Collection certs) throws Exception { in verifyCertificates() argument 351 for (Iterator it = certs.iterator(); it.hasNext();) { in verifyCertificates() 545 Collection certs = in testGenerateBase64Certificates() local 547 assertNotNull("Factory returned null on correct data", certs); in testGenerateBase64Certificates() 549 expected_size, certs.size()); in testGenerateBase64Certificates() 550 verifyCertificates(certs); in testGenerateBase64Certificates() 577 Collection certs = factory.generateCertificates(bais); in testGenerateBase64PKCS7() local 578 assertNotNull("Factory returned null on correct PKCS7 data", certs); in testGenerateBase64PKCS7() 580 2, certs.size()); in testGenerateBase64PKCS7() 583 for (Iterator it = certs.iterator(); it.hasNext();) { in testGenerateBase64PKCS7() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertificateFactory3Test.java | 90 Certificate[] certs = new Certificate[3]; in testGenerateCertificate() local 92 certs[i] = certFs[i].generateCertificate(new ByteArrayInputStream( in testGenerateCertificate() 95 assertEquals(certs[0], certs[1]); in testGenerateCertificate() 96 assertEquals(certs[0], certs[2]); in testGenerateCertificate()
|
/external/openssl/crypto/pkcs7/ |
D | pk7_smime.c | 68 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign() argument 94 for(i = 0; i < sk_X509_num(certs); i++) in PKCS7_sign() 96 if (!PKCS7_add_certificate(p7, sk_X509_value(certs, i))) in PKCS7_sign() 266 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, in PKCS7_verify() argument 314 signers = PKCS7_get0_signers(p7, certs, flags); in PKCS7_verify() 430 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, int flags) in STACK_OF() 469 if (certs) signer = X509_find_by_issuer_and_serial (certs, in STACK_OF() 492 PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, in PKCS7_encrypt() argument 511 for(i = 0; i < sk_X509_num(certs); i++) { in PKCS7_encrypt() 512 x509 = sk_X509_value(certs, i); in PKCS7_encrypt()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore_Impl1Test.java | 462 KeyStoreTestSupport.MCertificate certs[] = { in testEntry02() local 469 certs); in testEntry02() 505 certs.length); in testEntry02() 507 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); in testEntry02() 522 certs.length); in testEntry02() 524 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); in testEntry02() 730 KeyStoreTestSupport.MCertificate certs[] = { in testEntry05() local 746 kss[i].setKeyEntry("ZZZ", null, pwd, certs); in testEntry05() 765 kss[i].setKeyEntry(aliases[j], key, pwd, certs); in testEntry05() 768 kss[i].setKeyEntry("KeyAlias", key, pwd, certs); in testEntry05() [all …]
|
/external/openssl/android.testssl/ |
D | CAss.cnf | 35 certs = $dir/certs # Where the issued certs are kept 40 new_certs_dir = $dir/newcerts # default place for new certs.
|