/openssl/test/recipes/ |
H A D | 25-test_x509.t | 27 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"); 73 my $key = srctop_file(@certs, "serverkey.pem"); 75 my $testcert = srctop_file(@certs, "ee-cert.pem"); 118 cert_contains(srctop_file(@certs, "fake-gp.pem"), 126 cert_contains(srctop_file(@certs, "ext-groupAC.pem"), 134 cert_contains(srctop_file(@certs, "ext-noRevAvail.pem"), 138 cert_contains(srctop_file(@certs, "ext-singleUse.pem"), [all …]
|
H A D | 25-test_req.t | 22 my @certs = qw(test certs); 567 "-in", srctop_file(@certs, "x509-check.csr")); 574 "-in", srctop_file(@certs, "x509-check.csr")); 582 "-in", srctop_file(@certs, "x509-check.csr")); 588 "-in", srctop_file(@certs, "x509-check.csr")); 593 "-in", srctop_file(@certs, "x509-check.csr")); 598 "-in", srctop_file(@certs, "x509-check.csr")); 603 "-in", srctop_file(@certs, "x509-check.csr")); 608 "-in", srctop_file(@certs, "x509-check.csr")); 625 "-key", srctop_file(@certs, "ee-key.pem")); [all …]
|
H A D | 06-test_algorithmid.t | 47 my @certs = sort keys %certs_info; 50 scalar @certs 53 foreach (@certs) {
|
/openssl/test/smime-certs/ |
H A D | mksmime-certs.sh | 23 -keyout smroot.pem -out smroot.pem -key ../certs/ca-key.pem -days 36524 26 cp ../certs/ee-key.pem smrsa1.pem 28 cp ../certs/ee-key-3072.pem smrsa2.pem 30 cp ../certs/ee-key-4096.pem smrsa3.pem 38 cp ../certs/server-dsa-key.pem smdsa1.pem 40 cp ../certs/server-dsa-key.pem smdsa2.pem 42 cp ../certs/server-dsa-key.pem smdsa3.pem 47 cp ../certs/ee-ecdsa-key.pem smec1.pem 49 cp ../certs/server-ecdsa-key.pem smec2.pem 68 cp ../certs/ee-key.pem csrsa1.pem
|
/openssl/test/ |
H A D | cmp_protect_test.c | 29 STACK_OF(X509) *certs; 47 sk_X509_free(fixture->certs); in tear_down() 378 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_cmp_build_cert_chain() 404 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_cmp_build_cert_chain_missing_intermediate() 422 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_cmp_build_cert_chain_no_root() 441 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_cmp_build_cert_chain_only_root() 458 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_cmp_build_cert_chain_no_certs() 494 if (!TEST_ptr(fixture->certs = sk_X509_new_null()) in test_X509_STORE() 495 || !sk_X509_push(fixture->certs, endentity1) in test_X509_STORE() 497 || !sk_X509_push(fixture->certs, root) in test_X509_STORE() [all …]
|
H A D | x509_load_cert_file_test.c | 22 STACK_OF(X509) *certs = NULL; in test_load_cert_file() 28 || !TEST_ptr(certs = X509_STORE_get1_all_certs(store)) in test_load_cert_file() 29 || !TEST_int_eq(sk_X509_num(certs), 4) in test_load_cert_file() 46 OSSL_STACK_OF_X509_free(certs); in test_load_cert_file()
|
H A D | test.cnf | 10 certs = $dir/certs # Where the issued certs are kept 13 new_certs_dir = $dir/new_certs # default place for new certs.
|
H A D | CAtsa.cnf | 29 certs = $dir/certs # Where the issued certs are kept 31 new_certs_dir = $dir/newcerts # default place for new certs. 131 certs = $dir/tsaca.pem # Certificate chain to include in reply 157 certs = $dir/demoCA/cacert.pem# Certificate chain to include in reply
|
/openssl/crypto/ocsp/ |
H A D | ocsp_vfy.c | 17 STACK_OF(X509) *certs, unsigned long flags); 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() 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() 198 return X509_find_by_subject(certs, id->value.byName); in ocsp_find_signer_sk() 207 for (i = 0; i < sk_X509_num(certs); i++) { in ocsp_find_signer_sk() 208 if ((x = sk_X509_value(certs, i)) != NULL) { in ocsp_find_signer_sk() 403 ret = ocsp_req_find_signer(&signer, req, nm, certs, flags); in OCSP_request_verify() [all …]
|
H A D | ocsp_prn.c | 124 for (i = 0; i < sk_X509_num(sig->certs); i++) { in OCSP_REQUEST_print() 125 X509_print(bp, sk_X509_value(sig->certs, i)); in OCSP_REQUEST_print() 126 PEM_write_bio_X509(bp, sk_X509_value(sig->certs, i)); in OCSP_REQUEST_print() 239 for (i = 0; i < sk_X509_num(br->certs); i++) { in OCSP_RESPONSE_print() 240 X509_print(bp, sk_X509_value(br->certs, i)); in OCSP_RESPONSE_print() 241 PEM_write_bio_X509(bp, sk_X509_value(br->certs, i)); in OCSP_RESPONSE_print()
|
H A D | ocsp_srv.c | 159 return ossl_x509_add_cert_new(&resp->certs, cert, X509_ADD_FLAG_UP_REF); in OCSP_basic_add1_cert() 169 STACK_OF(X509) *certs, unsigned long flags) in OCSP_basic_sign_ctx() 187 || !X509_add_certs(brsp->certs, certs, X509_ADD_FLAG_UP_REF)) in OCSP_basic_sign_ctx() 217 STACK_OF(X509) *certs, unsigned long flags) in OCSP_basic_sign() 231 i = OCSP_basic_sign_ctx(brsp, signer, ctx, certs, flags); in OCSP_basic_sign()
|
/openssl/test/quic-openssl-docker/ |
H A D | run_endpoint.sh | 42 SSL_CERT_FILE=/certs/ca.pem curl --config $CURLRC || exit 1 57 …SSLKEYLOGFILE=/logs/keys.log SSL_CERT_FILE=/certs/ca.pem SSL_CERT_DIR=/certs quic-hq-interop $HOST… 67 …LE=./session.db SSLKEYLOGFILE=/logs/keys.log SSL_CERT_FILE=/certs/ca.pem SSL_CERT_DIR=/certs quic-… 79 …LE=./session.db SSLKEYLOGFILE=/logs/keys.log SSL_CERT_FILE=/certs/ca.pem SSL_CERT_DIR=/certs quic-…
|
/openssl/crypto/ts/ |
H A D | ts_verify_ctx.c | 81 STACK_OF(X509) *certs) in STACK_OF() 83 ctx->certs = certs; in STACK_OF() 84 return ctx->certs; in STACK_OF() 88 int TS_VERIFY_CTX_set0_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs) in TS_VERIFY_CTX_set0_certs() argument 90 OSSL_STACK_OF_X509_free(ctx->certs); in TS_VERIFY_CTX_set0_certs() 91 ctx->certs = certs; in TS_VERIFY_CTX_set0_certs() 121 OSSL_STACK_OF_X509_free(ctx->certs); in TS_VERIFY_CTX_cleanup()
|
H A D | ts_rsp_sign.c | 129 OSSL_STACK_OF_X509_free(ctx->certs); in TS_RESP_CTX_free() 177 int TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs) in TS_RESP_CTX_set_certs() argument 179 OSSL_STACK_OF_X509_free(ctx->certs); in TS_RESP_CTX_set_certs() 180 ctx->certs = NULL; in TS_RESP_CTX_set_certs() 182 return certs == NULL || (ctx->certs = X509_chain_up_ref(certs)) != NULL; in TS_RESP_CTX_set_certs() 678 STACK_OF(X509) *certs; /* Certificates to include in sc. */ in ts_RESP_sign() 702 if (ctx->certs) { in ts_RESP_sign() 703 for (i = 0; i < sk_X509_num(ctx->certs); ++i) { in ts_RESP_sign() 704 X509 *cert = sk_X509_value(ctx->certs, i); in ts_RESP_sign() 731 certs = ctx->flags & TS_ESS_CERT_ID_CHAIN ? ctx->certs : NULL; in ts_RESP_sign() [all …]
|
/openssl/test/testutil/ |
H A D | load.c | 35 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 OSSL_STACK_OF_X509_free(certs); in STACK_OF() 66 return certs; in STACK_OF()
|
/openssl/apps/ |
H A D | nseq.c | 90 seq->certs = sk_X509_new_null(); in nseq_main() 91 if (seq->certs == NULL) in nseq_main() 94 if (!sk_X509_push(seq->certs, x509)) in nseq_main() 98 if (!sk_X509_num(seq->certs)) { in nseq_main() 117 for (i = 0; i < sk_X509_num(seq->certs); i++) { in nseq_main() 118 x509 = sk_X509_value(seq->certs, i); in nseq_main()
|
H A D | pkcs7.c | 151 STACK_OF(X509) *certs = NULL; in pkcs7_main() 158 certs = p7->d.sign->cert; in pkcs7_main() 164 certs = p7->d.signed_and_enveloped->cert; in pkcs7_main() 172 if (certs != NULL) { in pkcs7_main() 175 for (i = 0; i < sk_X509_num(certs); i++) { in pkcs7_main() 176 x = sk_X509_value(certs, i); in pkcs7_main()
|
/openssl/fuzz/ |
H A D | x509.c | 45 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()
|
/openssl/crypto/pkcs7/ |
H A D | pk7_smime.c | 24 PKCS7 *PKCS7_sign_ex(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign_ex() argument 48 for (i = 0; i < sk_X509_num(certs); i++) { in PKCS7_sign_ex() 49 if (!PKCS7_add_certificate(p7, sk_X509_value(certs, i))) in PKCS7_sign_ex() 68 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign() argument 215 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, in PKCS7_verify() argument 268 signers = PKCS7_get0_signers(p7, certs, flags); in PKCS7_verify() 407 signer = X509_find_by_issuer_and_serial(certs, in STACK_OF() 428 PKCS7 *PKCS7_encrypt_ex(STACK_OF(X509) *certs, BIO *in, in PKCS7_encrypt_ex() argument 449 for (i = 0; i < sk_X509_num(certs); i++) { in PKCS7_encrypt_ex() 450 x509 = sk_X509_value(certs, i); in PKCS7_encrypt_ex() [all …]
|
/openssl/test/recipes/90-test_includes_data/conf-includes/ |
H A D | includes1.cnf | 15 certs = $dir/certs # Where the issued certs are kept 18 new_certs_dir = $dir/new_certs # default place for new certs.
|
/openssl/crypto/ess/ |
H A D | ess_lib.c | 25 const STACK_OF(X509) *certs, in OSSL_ESS_signing_cert_new_init() 47 for (i = 0; i < sk_X509_num(certs); ++i) { in OSSL_ESS_signing_cert_new_init() 48 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_new_init() 127 STACK_OF(X509) *certs, in OSSL_ESS_signing_cert_v2_new_init() 149 for (i = 0; i < sk_X509_num(certs); ++i) { in OSSL_ESS_signing_cert_v2_new_init() 150 X509 *cert = sk_X509_value(certs, i); in OSSL_ESS_signing_cert_v2_new_init() 271 int index, const STACK_OF(X509) *certs) in find() 307 for (i = 0; i < sk_X509_num(certs); ++i) { in find() 308 cert = sk_X509_value(certs, i); in find()
|
/openssl/doc/man3/ |
H A D | X509_add_cert.pod | 14 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>.
|
/openssl/crypto/cms/ |
H A D | cms_smime.c | 307 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, in CMS_verify() argument 347 scount += CMS_set1_signers_certs(cms, certs, flags); in CMS_verify() 366 if (sk_X509_num(certs) > 0 in CMS_verify() 367 && !ossl_x509_add_certs_new(&untrusted, certs, in CMS_verify() 501 STACK_OF(X509) *certs, in CMS_verify_receipt() 507 r = CMS_verify(rcms, certs, store, NULL, NULL, flags); in CMS_verify_receipt() 538 for (i = 0; i < sk_X509_num(certs); i++) { in CMS_sign_ex() 539 X509 *x = sk_X509_value(certs, i); in CMS_sign_ex() 588 cms = CMS_sign_ex(NULL, NULL, certs, NULL, flags, in CMS_sign_receipt() 656 for (i = 0; i < sk_X509_num(certs); i++) { in CMS_encrypt_ex() [all …]
|
/openssl/crypto/cmp/ |
H A D | cmp_genm.c | 62 STACK_OF(X509) *certs, in ossl_X509_check_all() 68 for (i = 0; i < sk_X509_num(certs /* may be NULL */); i++) in ossl_X509_check_all() 70 sk_X509_value(certs, i), type_CA, vpm) in ossl_X509_check_all() 144 STACK_OF(X509) *certs = NULL; in OSSL_CMP_get1_caCerts() 157 if (!OSSL_CMP_ITAV_get0_caCerts(itav, &certs)) in OSSL_CMP_get1_caCerts() 160 if (certs == NULL) /* no CA certificate available */ in OSSL_CMP_get1_caCerts() 163 if (!ossl_X509_check_all(ctx, "genp", certs, 1 /* CA */, in OSSL_CMP_get1_caCerts() 168 *out = sk_X509_new_reserve(NULL, sk_X509_num(certs)); in OSSL_CMP_get1_caCerts() 169 if (!X509_add_certs(*out, certs, in OSSL_CMP_get1_caCerts()
|
/openssl/crypto/x509/ |
H A D | t_x509.c | 20 void OSSL_STACK_OF_X509_free(STACK_OF(X509) *certs) in OSSL_STACK_OF_X509_free() argument 22 sk_X509_pop_free(certs, X509_free); in OSSL_STACK_OF_X509_free() 405 static int print_certs(BIO *bio, const STACK_OF(X509) *certs) in print_certs() argument 409 if (certs == NULL || sk_X509_num(certs) <= 0) in print_certs() 412 for (i = 0; i < sk_X509_num(certs); i++) { in print_certs() 413 X509 *cert = sk_X509_value(certs, i); in print_certs() 430 STACK_OF(X509) *certs = X509_STORE_get1_all_certs(store); in print_store_certs() 431 int ret = print_certs(bio, certs); in print_store_certs() 433 OSSL_STACK_OF_X509_free(certs); in print_store_certs()
|