Home
last modified time | relevance | path

Searched refs:certs (Results 1 – 25 of 728) sorted by relevance

12345678910>>...30

/third_party/openssl/test/
Dcmp_protect_test.c28 STACK_OF(X509) *certs;
45 sk_X509_free(fixture->certs); in tear_down()
337 X509_build_chain(fixture->cert, fixture->certs, NULL, in execute_cmp_build_cert_chain_test()
352 chain = X509_build_chain(fixture->cert, fixture->certs, store, in execute_cmp_build_cert_chain_test()
371 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_cmp_build_cert_chain()
373 || !TEST_true(sk_X509_push(fixture->certs, endentity1)) in test_cmp_build_cert_chain()
374 || !TEST_true(sk_X509_push(fixture->certs, root)) in test_cmp_build_cert_chain()
375 || !TEST_true(sk_X509_push(fixture->certs, intermediate)) in test_cmp_build_cert_chain()
397 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_cmp_build_cert_chain_missing_intermediate()
399 || !TEST_true(sk_X509_push(fixture->certs, endentity1)) in test_cmp_build_cert_chain_missing_intermediate()
[all …]
/third_party/openssl/crypto/ocsp/
Docsp_vfy.c17 STACK_OF(X509) *certs, unsigned long flags);
18 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id);
26 const X509_NAME *nm, STACK_OF(X509) *certs,
98 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, in OCSP_basic_verify() argument
104 int ret = ocsp_find_signer(&signer, bs, certs, flags); in OCSP_basic_verify()
118 if ((untrusted = sk_X509_dup(bs->certs)) == NULL) in OCSP_basic_verify()
120 if (!X509_add_certs(untrusted, certs, X509_ADD_FLAG_DEFAULT)) in OCSP_basic_verify()
169 STACK_OF(X509) *certs, unsigned long flags) in ocsp_find_signer()
174 if ((signer = ocsp_find_signer_sk(certs, rid)) != NULL) { in ocsp_find_signer()
179 (signer = ocsp_find_signer_sk(bs->certs, rid))) { in ocsp_find_signer()
[all …]
/third_party/node/deps/openssl/openssl/crypto/ocsp/
Docsp_vfy.c17 STACK_OF(X509) *certs, unsigned long flags);
18 static X509 *ocsp_find_signer_sk(STACK_OF(X509) *certs, OCSP_RESPID *id);
26 const X509_NAME *nm, STACK_OF(X509) *certs,
98 int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, in OCSP_basic_verify() argument
104 int ret = ocsp_find_signer(&signer, bs, certs, flags); in OCSP_basic_verify()
118 if ((untrusted = sk_X509_dup(bs->certs)) == NULL) in OCSP_basic_verify()
120 if (!X509_add_certs(untrusted, certs, X509_ADD_FLAG_DEFAULT)) in OCSP_basic_verify()
169 STACK_OF(X509) *certs, unsigned long flags) in ocsp_find_signer()
174 if ((signer = ocsp_find_signer_sk(certs, rid)) != NULL) { in ocsp_find_signer()
179 (signer = ocsp_find_signer_sk(bs->certs, rid))) { in ocsp_find_signer()
[all …]
/third_party/openssl/test/recipes/
D25-test_x509.t27 my @certs = qw(test certs);
28 my $pem = srctop_file(@certs, "cyrillic.pem");
33 my $msb = srctop_file(@certs, "cyrillic.msb");
34 my $utf = srctop_file(@certs, "cyrillic.utf8");
70 my $pkey = srctop_file(@certs, "ca-key.pem"); # issuer private key
73 my $signkey = srctop_file(@certs, "serverkey.pem");
75 my $testcert = srctop_file(@certs, "ee-cert.pem");
99 ok(run(test(["v3ext", srctop_file(@certs, "pathlen.pem")])));
102 cert_contains(srctop_file(@certs, "fake-gp.pem"),
108 my $infile = srctop_file(@certs, $cert);
D25-test_req.t22 my @certs = qw(test certs);
54 "-in", srctop_file(@certs, "x509-check.csr"),
323 "-new", "-key", srctop_file(@certs, "sm2.key"),
336 "-new", "-key", srctop_file(@certs, "sm2.key"),
388 my $ca_key = srctop_file(@certs, "ca-key.pem");
389 my $key = $is_ca ? $ca_key : srctop_file(@certs, "ee-key.pem");
452 "-key", srctop_file(@certs, "ee-key.pem"));
458 "-key", srctop_file(@certs, "ee-key.pem"));
465 "-in", srctop_file(@certs, "x509-check.csr"));
470 generate_cert($cert, "-in", srctop_file(@certs, "ext-check.csr"));
[all …]
/third_party/rust/crates/rust-openssl/openssl/src/
Dpkcs7.rs102 certs: &StackRef<X509>, in encrypt()
111 certs.as_ptr(), in encrypt()
130 certs: &StackRef<X509>, in sign()
142 certs.as_ptr(), in sign()
223 certs: &StackRef<X509>, in verify()
240 certs.as_ptr(), in verify()
261 certs: &StackRef<X509>, in signers()
267 certs.as_ptr(), in signers()
298 let mut certs = Stack::new().unwrap(); in encrypt_decrypt_test() localVariable
299 certs.push(cert.clone()).unwrap(); in encrypt_decrypt_test()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dtls_openssl_ocsp.c166 STACK_OF(X509) *certs;
214 ASN1_EXP_SEQUENCE_OF_OPT(BasicOCSPResponse, certs, X509, 0)
460 static X509 * ocsp_find_signer(STACK_OF(X509) *certs, ResponderID *rid) in ocsp_find_signer() argument
467 return X509_find_by_subject(certs, rid->value.byName); in ocsp_find_signer()
473 for (i = 0; i < sk_X509_num(certs); i++) { in ocsp_find_signer()
474 X509 *x = sk_X509_value(certs, i); in ocsp_find_signer()
504 STACK_OF(X509) *untrusted = NULL, *certs = NULL, *chain = NULL; in check_ocsp_resp()
564 if (basic->certs) { in check_ocsp_resp()
565 untrusted = sk_X509_dup(basic->certs); in check_ocsp_resp()
569 num = sk_X509_num(basic->certs); in check_ocsp_resp()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dtls_openssl_ocsp.c166 STACK_OF(X509) *certs;
214 ASN1_EXP_SEQUENCE_OF_OPT(BasicOCSPResponse, certs, X509, 0)
460 static X509 * ocsp_find_signer(STACK_OF(X509) *certs, ResponderID *rid) in ocsp_find_signer() argument
467 return X509_find_by_subject(certs, rid->value.byName); in ocsp_find_signer()
473 for (i = 0; i < sk_X509_num(certs); i++) { in ocsp_find_signer()
474 X509 *x = sk_X509_value(certs, i); in ocsp_find_signer()
504 STACK_OF(X509) *untrusted = NULL, *certs = NULL, *chain = NULL; in check_ocsp_resp()
564 if (basic->certs) { in check_ocsp_resp()
565 untrusted = sk_X509_dup(basic->certs); in check_ocsp_resp()
569 num = sk_X509_num(basic->certs); in check_ocsp_resp()
[all …]
/third_party/node/deps/openssl/openssl/crypto/pkcs7/
Dpk7_smime.c23 PKCS7 *PKCS7_sign_ex(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign_ex() argument
47 for (i = 0; i < sk_X509_num(certs); i++) { in PKCS7_sign_ex()
48 if (!PKCS7_add_certificate(p7, sk_X509_value(certs, i))) in PKCS7_sign_ex()
67 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign() argument
70 return PKCS7_sign_ex(signcert, pkey, certs, data, flags, NULL, NULL); in PKCS7_sign()
213 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, in PKCS7_verify() argument
264 signers = PKCS7_get0_signers(p7, certs, flags); in PKCS7_verify()
382 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, in STACK_OF()
421 if (certs) in STACK_OF()
422 signer = X509_find_by_issuer_and_serial(certs, in STACK_OF()
[all …]
/third_party/openssl/crypto/pkcs7/
Dpk7_smime.c23 PKCS7 *PKCS7_sign_ex(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign_ex() argument
47 for (i = 0; i < sk_X509_num(certs); i++) { in PKCS7_sign_ex()
48 if (!PKCS7_add_certificate(p7, sk_X509_value(certs, i))) in PKCS7_sign_ex()
67 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign() argument
70 return PKCS7_sign_ex(signcert, pkey, certs, data, flags, NULL, NULL); in PKCS7_sign()
213 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, in PKCS7_verify() argument
264 signers = PKCS7_get0_signers(p7, certs, flags); in PKCS7_verify()
382 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, in STACK_OF()
421 if (certs) in STACK_OF()
422 signer = X509_find_by_issuer_and_serial(certs, in STACK_OF()
[all …]
/third_party/openssl/test/testutil/
Dload.c35 STACK_OF(X509) *certs; in STACK_OF()
42 certs = sk_X509_new_null(); in STACK_OF()
43 if (certs == NULL) { in STACK_OF()
51 if (x != NULL && !sk_X509_push(certs, x)) { in STACK_OF()
52 sk_X509_pop_free(certs, X509_free); in STACK_OF()
66 return certs; in STACK_OF()
/third_party/node/deps/openssl/openssl/fuzz/
Dx509.c45 STACK_OF(X509) *certs = NULL; in FuzzerTestOneInput()
117 certs = sk_X509_new_null(); in FuzzerTestOneInput()
118 if (certs == NULL) in FuzzerTestOneInput()
121 sk_X509_push(certs, x509_1); in FuzzerTestOneInput()
122 sk_X509_push(certs, x509_2); in FuzzerTestOneInput()
124 OCSP_basic_verify(bs, certs, store, OCSP_PARTIAL_CHAIN); in FuzzerTestOneInput()
144 sk_X509_free(certs); in FuzzerTestOneInput()
/third_party/openssl/apps/
Dnseq.c91 seq->certs = sk_X509_new_null(); in nseq_main()
92 if (seq->certs == NULL) in nseq_main()
95 if (!sk_X509_push(seq->certs, x509)) in nseq_main()
99 if (!sk_X509_num(seq->certs)) { in nseq_main()
118 for (i = 0; i < sk_X509_num(seq->certs); i++) { in nseq_main()
119 x509 = sk_X509_value(seq->certs, i); in nseq_main()
Dpkcs7.c147 STACK_OF(X509) *certs = NULL; in pkcs7_main()
154 certs = p7->d.sign->cert; in pkcs7_main()
160 certs = p7->d.signed_and_enveloped->cert; in pkcs7_main()
168 if (certs != NULL) { in pkcs7_main()
171 for (i = 0; i < sk_X509_num(certs); i++) { in pkcs7_main()
172 x = sk_X509_value(certs, i); in pkcs7_main()
/third_party/node/deps/openssl/openssl/apps/
Dnseq.c91 seq->certs = sk_X509_new_null(); in nseq_main()
92 if (seq->certs == NULL) in nseq_main()
95 if (!sk_X509_push(seq->certs, x509)) in nseq_main()
99 if (!sk_X509_num(seq->certs)) { in nseq_main()
118 for (i = 0; i < sk_X509_num(seq->certs); i++) { in nseq_main()
119 x509 = sk_X509_value(seq->certs, i); in nseq_main()
Dpkcs7.c147 STACK_OF(X509) *certs = NULL; in pkcs7_main()
154 certs = p7->d.sign->cert; in pkcs7_main()
160 certs = p7->d.signed_and_enveloped->cert; in pkcs7_main()
168 if (certs != NULL) { in pkcs7_main()
171 for (i = 0; i < sk_X509_num(certs); i++) { in pkcs7_main()
172 x = sk_X509_value(certs, i); in pkcs7_main()
/third_party/node/deps/npm/node_modules/@sigstore/verify/dist/key/
Dcertificate.js195 function dedupeCertificates(certs) { argument
196 for (let i = 0; i < certs.length; i++) {
197 for (let j = i + 1; j < certs.length; j++) {
198 if (certs[i].equals(certs[j])) {
199 certs.splice(j, 1);
204 return certs;
/third_party/node/deps/openssl/openssl/crypto/ess/
Dess_lib.c25 const STACK_OF(X509) *certs, in OSSL_ESS_signing_cert_new_init()
41 for (i = 0; i < sk_X509_num(certs); ++i) { in OSSL_ESS_signing_cert_new_init()
42 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_new_init()
102 STACK_OF(X509) *certs, in OSSL_ESS_signing_cert_v2_new_init()
118 for (i = 0; i < sk_X509_num(certs); ++i) { in OSSL_ESS_signing_cert_v2_new_init()
119 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_v2_new_init()
218 int index, const STACK_OF(X509) *certs) in find()
254 for (i = 0; i < sk_X509_num(certs); ++i) { in find()
255 cert = sk_X509_value(certs, i); in find()
/third_party/openssl/crypto/ess/
Dess_lib.c25 const STACK_OF(X509) *certs, in OSSL_ESS_signing_cert_new_init()
41 for (i = 0; i < sk_X509_num(certs); ++i) { in OSSL_ESS_signing_cert_new_init()
42 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_new_init()
102 STACK_OF(X509) *certs, in OSSL_ESS_signing_cert_v2_new_init()
118 for (i = 0; i < sk_X509_num(certs); ++i) { in OSSL_ESS_signing_cert_v2_new_init()
119 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_v2_new_init()
218 int index, const STACK_OF(X509) *certs) in find()
254 for (i = 0; i < sk_X509_num(certs); ++i) { in find()
255 cert = sk_X509_value(certs, i); in find()
/third_party/openssl/crypto/cms/
Dcms_smime.c262 STACK_OF(X509) *certs, in cms_signerinfo_verify_cert()
278 if (!X509_STORE_CTX_init(ctx, store, signer, certs)) { in cms_signerinfo_verify_cert()
304 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, in CMS_verify() argument
344 scount += CMS_set1_signers_certs(cms, certs, flags); in CMS_verify()
492 STACK_OF(X509) *certs, in CMS_verify_receipt()
498 r = CMS_verify(rcms, certs, store, NULL, NULL, flags); in CMS_verify_receipt()
505 STACK_OF(X509) *certs, BIO *data, in CMS_sign_ex()
525 for (i = 0; i < sk_X509_num(certs); i++) { in CMS_sign_ex()
526 X509 *x = sk_X509_value(certs, i); in CMS_sign_ex()
549 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in CMS_sign() argument
[all …]
/third_party/node/deps/openssl/openssl/crypto/cms/
Dcms_smime.c262 STACK_OF(X509) *certs, in cms_signerinfo_verify_cert()
278 if (!X509_STORE_CTX_init(ctx, store, signer, certs)) { in cms_signerinfo_verify_cert()
304 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, in CMS_verify() argument
344 scount += CMS_set1_signers_certs(cms, certs, flags); in CMS_verify()
492 STACK_OF(X509) *certs, in CMS_verify_receipt()
498 r = CMS_verify(rcms, certs, store, NULL, NULL, flags); in CMS_verify_receipt()
505 STACK_OF(X509) *certs, BIO *data, in CMS_sign_ex()
525 for (i = 0; i < sk_X509_num(certs); i++) { in CMS_sign_ex()
526 X509 *x = sk_X509_value(certs, i); in CMS_sign_ex()
549 CMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in CMS_sign() argument
[all …]
/third_party/openssl/crypto/ts/
Dts_verify_ctx.c64 STACK_OF(X509) *certs) in STACK_OF()
66 ctx->certs = certs; in STACK_OF()
67 return ctx->certs; in STACK_OF()
85 sk_X509_pop_free(ctx->certs, X509_free); in TS_VERIFY_CTX_cleanup()
/third_party/node/deps/openssl/openssl/crypto/ts/
Dts_verify_ctx.c64 STACK_OF(X509) *certs) in STACK_OF()
66 ctx->certs = certs; in STACK_OF()
67 return ctx->certs; in STACK_OF()
85 sk_X509_pop_free(ctx->certs, X509_free); in TS_VERIFY_CTX_cleanup()
/third_party/openssl/doc/man3/
DX509_add_cert.pod14 int X509_add_certs(STACK_OF(X509) *sk, STACK_OF(X509) *certs, int flags);
20 X509_add_certs() adds a list of certificate I<certs> to the given list I<sk>.
21 The I<certs> argument may be NULL, which implies no effect.
22 It does not modify the list I<certs> but
52 because otherwise likely not for all members of the I<certs> list
55 Care should also be taken in case the I<certs> argument equals I<sk>.
/third_party/openssl/test/recipes/90-test_includes_data/conf-includes/
Dincludes1.cnf15 certs = $dir/certs # Where the issued certs are kept
18 new_certs_dir = $dir/new_certs # default place for new certs.

12345678910>>...30