Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/apps/
H A Dreq.c803 X509V3_CTX ext_ctx; in req_main() local
841 X509V3_set_ctx(&ext_ctx, CAcert != NULL ? CAcert : new_x509, in req_main()
845 if (!X509V3_set_issuer_pkey(&ext_ctx, issuer_key)) in req_main()
853 X509V3_set_nconf(&ext_ctx, req_conf); in req_main()
857 && !X509V3_EXT_add_nconf(req_conf, &ext_ctx, extensions, in req_main()
864 && !X509V3_EXT_add_nconf(addext_conf, &ext_ctx, "default", in req_main()
879 i = do_X509_sign(new_x509, issuer_key, digest, sigopts, &ext_ctx); in req_main()
883 X509V3_CTX ext_ctx; in req_main() local
886 X509V3_set_ctx(&ext_ctx, NULL, NULL, req, NULL, 0); in req_main()
887 X509V3_set_nconf(&ext_ctx, req_con in req_main()
[all...]
H A Dx509.c260 X509V3_CTX ext_ctx; in x509_main() local
829 X509V3_set_ctx(&ext_ctx, issuer_cert, x, NULL, NULL, X509V3_CTX_REPLACE); in x509_main()
832 if (!X509V3_set_issuer_pkey(&ext_ctx, privkey)) in x509_main()
836 X509V3_set_nconf(&ext_ctx, extconf); in x509_main()
837 if (!X509V3_EXT_add_nconf(extconf, &ext_ctx, extsect, x)) { in x509_main()
864 X509V3_set_nconf(&ext_ctx, extconf); in x509_main()
865 if (!X509V3_EXT_REQ_add_nconf(extconf, &ext_ctx, extsect, rq)) { in x509_main()
888 if (!do_X509_sign(x, privkey, digest, sigopts, &ext_ctx)) in x509_main()
900 if (!do_X509_sign(x, CAkey, digest, sigopts, &ext_ctx)) in x509_main()
H A Dca.c1516 X509V3_CTX ext_ctx; in do_body() local
1733 X509V3_set_ctx(&ext_ctx, selfsign ? ret : x509, in do_body()
1743 X509V3_set_nconf(&ext_ctx, extfile_conf); in do_body()
1746 if (!X509V3_EXT_add_nconf(extfile_conf, &ext_ctx, ext_sect, ret)) { in do_body()
1757 X509V3_set_nconf(&ext_ctx, lconf); in do_body()
1759 if (!X509V3_EXT_add_nconf(lconf, &ext_ctx, ext_sect, ret)) { in do_body()
1936 if (!do_X509_sign(ret, pkey, dgst, sigopts, &ext_ctx)) in do_body()
H A Dcmp.c1523 X509V3_CTX ext_ctx; in setup_request_ctx() local
1673 X509V3_set_ctx(&ext_ctx, NULL, NULL, csr, NULL, X509V3_CTX_REPLACE); in setup_request_ctx()
1674 X509V3_set_nconf(&ext_ctx, conf); in setup_request_ctx()
1676 && !X509V3_EXT_add_nconf_sk(conf, &ext_ctx, opt_reqexts, &exts)) { in setup_request_ctx()
1682 && !X509V3_EXT_add_nconf_sk(conf, &ext_ctx, opt_policies, &exts)) { in setup_request_ctx()
/freebsd/crypto/openssl/apps/include/
H A Dapps.h256 STACK_OF(OPENSSL_STRING) *sigopts, X509V3_CTX *ext_ctx);
/freebsd/crypto/openssl/apps/lib/
H A Dapps.c2243 static int adapt_keyid_ext(X509 *cert, X509V3_CTX *ext_ctx, in adapt_keyid_ext() argument
2247 X509_EXTENSION *new_ext = X509V3_EXT_nconf(NULL, ext_ctx, name, value); in adapt_keyid_ext()
2273 STACK_OF(OPENSSL_STRING) *sigopts, X509V3_CTX *ext_ctx) in do_X509_sign() argument
2290 if (!adapt_keyid_ext(cert, ext_ctx, "subjectKeyIdentifier", "hash", 1)) in do_X509_sign()
2296 if (!adapt_keyid_ext(cert, ext_ctx, "authorityKeyIdentifier", in do_X509_sign()