/openssl-master/test/certs/ |
A D | mkcert.sh | 92 local exts=$1; shift 96 -extfile <(printf "%s\n" "$exts") "$@" 111 exts=$(printf "%s\nextendedKeyUsage = %s\n" "$exts" "$eku") 144 exts=$(printf "%s\nextendedKeyUsage = %s\n" "$exts" "$purpose") 147 exts=$(printf "%s\nnameConstraints = %s\n" "$exts" "$NC") 164 exts=$(printf "%s\n%s\n%s\n" "$skid" "$akid") 165 exts=$(printf "%s\nkeyUsage = %s\n" "$exts" "keyCertSign, cRLSign") 168 exts=$(printf "%s\nextendedKeyUsage = %s\n" "$exts" "$eku") 187 exts=$(printf "%s\n%s\n%s\n%s\n" \ 209 exts=$(printf "%s\n%s\n%s\n%s\n" \ [all …]
|
/openssl-master/ssl/statem/ |
A D | extensions_cust.c | 86 custom_ext_method *meth = exts->meths; in custom_ext_find() 103 void custom_ext_init(custom_ext_methods *exts) in custom_ext_init() argument 106 custom_ext_method *meth = exts->meths; in custom_ext_init() 181 for (i = 0; i < exts->meths_count; i++) { in custom_ext_add() 185 meth = exts->meths + i; in custom_ext_add() 322 for (i = 0, meth = exts->meths; i < exts->meths_count; i++, meth++) { in custom_exts_free() 330 OPENSSL_free(exts->meths); in custom_exts_free() 385 tmp = OPENSSL_realloc(exts->meths, in add_custom_ext_intern() 390 exts->meths = tmp; in add_custom_ext_intern() 391 meth = exts->meths + exts->meths_count; in add_custom_ext_intern() [all …]
|
A D | extensions.c | 405 int tls_validate_all_contexts(SSL *s, unsigned int thisctx, RAW_EXTENSION *exts) in tls_validate_all_contexts() argument 420 for (thisext = exts, i = 0; i < num_exts; i++, thisext++) { in tls_validate_all_contexts() 553 custom_ext_methods *exts = &s->cert->custext; in tls_collect_extensions() local 566 num_exts = OSSL_NELEM(ext_defs) + (exts != NULL ? exts->meths_count : 0); in tls_collect_extensions() 589 if (!verify_extension(s, context, type, exts, raw_extensions, &thisex) in tls_collect_extensions() 679 RAW_EXTENSION *exts, X509 *x, size_t chainidx) in tls_parse_extension() argument 681 RAW_EXTENSION *currext = &exts[idx]; in tls_parse_extension() 728 int tls_parse_all_extensions(SSL *s, int context, RAW_EXTENSION *exts, X509 *x, in tls_parse_all_extensions() argument 739 if (!tls_parse_extension(s, i, context, exts, x, chainidx)) { in tls_parse_all_extensions() 753 && !thisexd->final(s, context, exts[i].present)) { in tls_parse_all_extensions()
|
A D | extensions_srvr.c | 304 PACKET responder_id_list, exts; in tls_parse_ctos_status_request() local 382 if (!PACKET_as_length_prefixed_2(pkt, &exts)) { in tls_parse_ctos_status_request() 387 if (PACKET_remaining(&exts) > 0) { in tls_parse_ctos_status_request() 388 const unsigned char *ext_data = PACKET_data(&exts); in tls_parse_ctos_status_request() 390 sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, in tls_parse_ctos_status_request() 392 s->ext.ocsp.exts = in tls_parse_ctos_status_request() 393 d2i_X509_EXTENSIONS(NULL, &ext_data, (int)PACKET_remaining(&exts)); in tls_parse_ctos_status_request() 394 if (s->ext.ocsp.exts == NULL || ext_data != PACKET_end(&exts)) { in tls_parse_ctos_status_request()
|
A D | statem_local.h | 178 RAW_EXTENSION *exts); 184 RAW_EXTENSION *exts, X509 *x, size_t chainidx); 185 __owur int tls_parse_all_extensions(SSL *s, int context, RAW_EXTENSION *exts,
|
A D | statem_clnt.c | 2451 RAW_EXTENSION *exts = NULL; in tls_process_new_session_ticket() local 2541 SSL_EXT_TLS1_3_NEW_SESSION_TICKET, &exts, in tls_process_new_session_ticket() 2545 exts, NULL, 0, 1)) { in tls_process_new_session_ticket() 2609 OPENSSL_free(exts); in tls_process_new_session_ticket() 2617 OPENSSL_free(exts); in tls_process_new_session_ticket()
|
A D | extensions_clnt.c | 362 if (s->ext.ocsp.exts) { in tls_construct_ctos_status_request() 364 int extlen = i2d_X509_EXTENSIONS(s->ext.ocsp.exts, NULL); in tls_construct_ctos_status_request() 371 || i2d_X509_EXTENSIONS(s->ext.ocsp.exts, &extbytes) in tls_construct_ctos_status_request()
|
/openssl-master/crypto/x509/ |
A D | t_req.c | 43 STACK_OF(X509_EXTENSION) *exts; in X509_REQ_print_ex() 167 exts = X509_REQ_get_extensions(x); in X509_REQ_print_ex() 168 if (exts) { in X509_REQ_print_ex() 171 for (i = 0; i < sk_X509_EXTENSION_num(exts); i++) { in X509_REQ_print_ex() 175 ex = sk_X509_EXTENSION_value(exts, i); in X509_REQ_print_ex() 193 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); in X509_REQ_print_ex()
|
A D | x_crl.c | 94 STACK_OF(X509_EXTENSION) *exts; 130 exts = rev->extensions; 132 for (j = 0; j < sk_X509_EXTENSION_num(exts); j++) { 133 ext = sk_X509_EXTENSION_value(exts, j); 156 STACK_OF(X509_EXTENSION) *exts; in crl_cb() 227 exts = crl->crl.extensions; in crl_cb() 229 for (idx = 0; idx < sk_X509_EXTENSION_num(exts); idx++) { in crl_cb() 231 ext = sk_X509_EXTENSION_value(exts, idx); in crl_cb()
|
A D | v3_prn.c | 140 const STACK_OF(X509_EXTENSION) *exts, in X509V3_extensions_print() 145 if (sk_X509_EXTENSION_num(exts) <= 0) in X509V3_extensions_print() 153 for (i = 0; i < sk_X509_EXTENSION_num(exts); i++) { in X509V3_extensions_print() 157 ex = sk_X509_EXTENSION_value(exts, i); in X509V3_extensions_print()
|
A D | x509_req.c | 170 const STACK_OF(X509_EXTENSION) *exts, int nid) in X509_REQ_add_extensions_nid() 177 extlen = ASN1_item_i2d((const ASN1_VALUE *)exts, &ext, in X509_REQ_add_extensions_nid() 187 int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts) in X509_REQ_add_extensions() argument 189 return X509_REQ_add_extensions_nid(req, exts, NID_ext_req); in X509_REQ_add_extensions()
|
A D | v3_conf.c | 384 STACK_OF(X509_EXTENSION) *exts = NULL; in X509V3_EXT_REQ_add_nconf() 385 int ret = X509V3_EXT_add_nconf_sk(conf, ctx, section, &exts); in X509V3_EXT_REQ_add_nconf() 387 if (ret && req != NULL && exts != NULL) in X509V3_EXT_REQ_add_nconf() 388 ret = X509_REQ_add_extensions(req, exts); in X509V3_EXT_REQ_add_nconf() 389 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); in X509V3_EXT_REQ_add_nconf()
|
A D | v3_utl.c | 480 STACK_OF(X509_EXTENSION) *exts; in STACK_OF() 483 exts = X509_REQ_get_extensions(x); in STACK_OF() 484 gens = X509V3_get_d2i(exts, NID_subject_alt_name, NULL, NULL); in STACK_OF() 487 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); in STACK_OF()
|
/openssl-master/test/recipes/ |
A D | tconversion.pl | 149 my $exts = shift @_; 152 run(app(["openssl", "x509", "-noout", "-ext", $exts, 155 "$cert '$exts' output should contain $expected different lines");
|
/openssl-master/crypto/cmp/ |
A D | cmp_msg.c | 123 const STACK_OF(X509_EXTENSION) *exts) in add_extensions() 130 for (i = 0; i < sk_X509_EXTENSION_num(exts); i++) { in add_extensions() 131 X509_EXTENSION *ext = sk_X509_EXTENSION_value(exts, i); in add_extensions() 288 X509_EXTENSIONS *exts = NULL; in OSSL_CMP_CTX_setup_CRM() local 334 && (exts = X509_REQ_get_extensions(ctx->p10CSR)) == NULL) in OSSL_CMP_CTX_setup_CRM() 337 && !add_extensions(&exts, ctx->reqExtensions)) in OSSL_CMP_CTX_setup_CRM() 340 && !add1_extension(&exts, NID_subject_alt_name, in OSSL_CMP_CTX_setup_CRM() 347 && !add1_extension(&exts, NID_certificate_policies, in OSSL_CMP_CTX_setup_CRM() 350 if (!OSSL_CRMF_MSG_set0_extensions(crm, exts)) in OSSL_CMP_CTX_setup_CRM() 352 exts = NULL; in OSSL_CMP_CTX_setup_CRM() [all …]
|
A D | cmp_ctx.c | 667 int OSSL_CMP_CTX_set0_reqExtensions(OSSL_CMP_CTX *ctx, X509_EXTENSIONS *exts) in DEFINE_OSSL_CMP_CTX_set1_up_ref() 674 if (sk_GENERAL_NAME_num(ctx->subjectAltNames) > 0 && exts != NULL in DEFINE_OSSL_CMP_CTX_set1_up_ref() 675 && X509v3_get_ext_by_NID(exts, NID_subject_alt_name, -1) >= 0) { in DEFINE_OSSL_CMP_CTX_set1_up_ref() 680 ctx->reqExtensions = exts; in DEFINE_OSSL_CMP_CTX_set1_up_ref()
|
/openssl-master/apps/ |
A D | x509.c | 199 STACK_OF(X509_EXTENSION) *exts; in x509_to_req() 211 if ((exts = sk_X509_EXTENSION_new_reserve(NULL, n)) == NULL) in x509_to_req() 218 && !sk_X509_EXTENSION_push(exts, ex)) in x509_to_req() 222 if (sk_X509_EXTENSION_num(exts) > 0) { in x509_to_req() 224 && !X509_REQ_add_extensions(req, exts)) { in x509_to_req() 229 sk_X509_EXTENSION_free(exts); in x509_to_req() 233 sk_X509_EXTENSION_free(exts); in x509_to_req() 1204 const STACK_OF(X509_EXTENSION) *exts = NULL; in print_x509v3_exts() 1212 exts = X509_get0_extensions(x); in print_x509v3_exts() 1213 if ((num = sk_X509_EXTENSION_num(exts)) <= 0) { in print_x509v3_exts() [all …]
|
A D | cmp.c | 1451 X509_EXTENSIONS *exts = NULL; in setup_request_ctx() local 1585 if ((exts = sk_X509_EXTENSION_new_null()) == NULL) in setup_request_ctx() 1590 && !X509V3_EXT_add_nconf_sk(conf, &ext_ctx, opt_reqexts, &exts)) { in setup_request_ctx() 1596 && !X509V3_EXT_add_nconf_sk(conf, &ext_ctx, opt_policies, &exts)) { in setup_request_ctx() 1601 OSSL_CMP_CTX_set0_reqExtensions(ctx, exts); in setup_request_ctx() 1685 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); in setup_request_ctx()
|
/openssl-master/doc/man3/ |
A D | OSSL_CRMF_MSG_set0_validity.pod | 29 int OSSL_CRMF_MSG_set0_extensions(OSSL_CRMF_MSG *crm, X509_EXTENSIONS *exts); 58 OSSL_CRMF_MSG_set0_extensions() sets I<exts> as the extensions in the 59 certTemplate of I<crm>. Frees any pre-existing ones and consumes I<exts>.
|
/openssl-master/crypto/crmf/ |
A D | crmf_lib.c | 319 X509_EXTENSIONS *exts) in OSSL_CRMF_MSG_set0_extensions() argument 328 if (sk_X509_EXTENSION_num(exts) == 0) { in OSSL_CRMF_MSG_set0_extensions() 329 sk_X509_EXTENSION_free(exts); in OSSL_CRMF_MSG_set0_extensions() 330 exts = NULL; /* do not include empty extensions list */ in OSSL_CRMF_MSG_set0_extensions() 334 tmpl->extensions = exts; in OSSL_CRMF_MSG_set0_extensions()
|
/openssl-master/test/ |
A D | cmp_ctx_test.c | 209 X509_EXTENSIONS *exts = NULL; in execute_CTX_reqExtensions_have_SAN_test() local 221 || !TEST_ptr(exts = sk_X509_EXTENSION_new_null()) in execute_CTX_reqExtensions_have_SAN_test() 222 || !TEST_true(sk_X509_EXTENSION_push(exts, ext)) in execute_CTX_reqExtensions_have_SAN_test() 223 || !TEST_true(OSSL_CMP_CTX_set0_reqExtensions(ctx, exts))) { in execute_CTX_reqExtensions_have_SAN_test() 225 sk_X509_EXTENSION_free(exts); in execute_CTX_reqExtensions_have_SAN_test() 229 ext = sk_X509_EXTENSION_pop(exts); in execute_CTX_reqExtensions_have_SAN_test()
|
/openssl-master/crypto/ocsp/ |
A D | ocsp_ext.c | 244 static int ocsp_add1_nonce(STACK_OF(X509_EXTENSION) **exts, in ocsp_add1_nonce() argument 271 if (!X509V3_add1_i2d(exts, NID_id_pkix_OCSP_Nonce, in ocsp_add1_nonce()
|
/openssl-master/apps/lib/ |
A D | apps.c | 1198 STACK_OF(X509_EXTENSION) *exts; in copy_extensions() 1205 exts = X509_REQ_get_extensions(req); in copy_extensions() 1207 for (i = 0; i < sk_X509_EXTENSION_num(exts); i++) { in copy_extensions() 1208 X509_EXTENSION *ext = sk_X509_EXTENSION_value(exts, i); in copy_extensions() 1229 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); in copy_extensions() 2217 const STACK_OF(X509_EXTENSION) *exts = X509_get0_extensions(cert); in adapt_keyid_ext() 2224 idx = X509v3_get_ext_by_OBJ(exts, X509_EXTENSION_get_object(new_ext), -1); in adapt_keyid_ext() 2226 X509_EXTENSION *found_ext = X509v3_get_ext(exts, idx); in adapt_keyid_ext() 2256 const STACK_OF(X509_EXTENSION) *exts = X509_get0_extensions(cert); in do_X509_sign() 2261 if (sk_X509_EXTENSION_num(exts /* may be NULL */) > 0) { in do_X509_sign()
|
/openssl-master/crypto/ts/ |
A D | ts_rsp_sign.c | 610 STACK_OF(X509_EXTENSION) *exts = ctx->request->extensions; in ts_RESP_process_extensions() 614 for (i = 0; ok && i < sk_X509_EXTENSION_num(exts); ++i) { in ts_RESP_process_extensions() 615 X509_EXTENSION *ext = sk_X509_EXTENSION_value(exts, i); in ts_RESP_process_extensions()
|
/openssl-master/include/openssl/ |
A D | crmf.h.in | 139 int OSSL_CRMF_MSG_set0_extensions(OSSL_CRMF_MSG *crm, X509_EXTENSIONS *exts);
|