/freebsd/crypto/openssl/test/certs/ |
H A D | mkcert.sh | 92 local exts=$1; shift 96 -extfile <(printf "%s\n" "$exts") "$@" 108 exts=$(printf "%s\n%s\n%s\n" "$bcon" "$ku" "$skid" "$akid") 111 exts=$(printf "%s\nextendedKeyUsage = %s\n" "$exts" "$eku") 115 cert "$cert" "$exts" -signkey "${key}.pem" -set_serial 1 -days "${DAYS}" 143 exts=$(printf "%s\n%s\n%s\n" "$bcon" "$ku" "$skid" "$akid") 145 exts=$(printf "%s\nextendedKeyUsage = %s\n" "$exts" "$purpose") 148 exts=$(printf "%s\nnameConstraints = %s\n" "$exts" "$NC") 151 exts=$(printf "%s\ncertificatePolicies = %s\n" "$exts" "$certpol") 156 cert "$cert" "$exts" -CA "${cacert}.pem" -CAkey "${cakey}.pem" \ [all …]
|
/freebsd/crypto/openssl/ssl/statem/ |
H A D | extensions_cust.c | 81 custom_ext_method *custom_ext_find(const custom_ext_methods *exts, in custom_ext_find() argument 86 custom_ext_method *meth = exts->meths; in custom_ext_find() 88 for (i = 0; i < exts->meths_count; i++, meth++) { 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() 108 for (i = 0; i < exts->meths_count; i++, meth++) in custom_ext_init() 118 custom_ext_methods *exts = &s->cert->custext; in custom_ext_parse() local 125 meth = custom_ext_find(exts, role, ext_type, NULL); in custom_ext_parse() 176 custom_ext_methods *exts = &s->cert->custext; in custom_ext_add() local 181 for (i = 0; i < exts->meths_count; i++) { in custom_ext_add() [all …]
|
H A D | extensions.c | 419 int tls_validate_all_contexts(SSL *s, unsigned int thisctx, RAW_EXTENSION *exts) in tls_validate_all_contexts() argument 434 for (thisext = exts, i = 0; i < num_exts; i++, thisext++) { in tls_validate_all_contexts() 567 custom_ext_methods *exts = &s->cert->custext; in tls_collect_extensions() local 580 num_exts = OSSL_NELEM(ext_defs) + (exts != NULL ? exts->meths_count : 0); in tls_collect_extensions() 603 if (!verify_extension(s, context, type, exts, raw_extensions, &thisex) in tls_collect_extensions() 693 RAW_EXTENSION *exts, X509 *x, size_t chainidx) in tls_parse_extension() argument 695 RAW_EXTENSION *currext = &exts[idx]; in tls_parse_extension() 742 int tls_parse_all_extensions(SSL *s, int context, RAW_EXTENSION *exts, X509 *x, in tls_parse_all_extensions() argument 753 if (!tls_parse_extension(s, i, context, exts, x, chainidx)) { in tls_parse_all_extensions() 767 && !thisexd->final(s, context, exts[i].present)) { in tls_parse_all_extensions()
|
H A D | extensions_srvr.c | 309 PACKET responder_id_list, exts; in tls_parse_ctos_status_request() local 387 if (!PACKET_as_length_prefixed_2(pkt, &exts)) { in tls_parse_ctos_status_request() 392 if (PACKET_remaining(&exts) > 0) { in tls_parse_ctos_status_request() 393 const unsigned char *ext_data = PACKET_data(&exts); in tls_parse_ctos_status_request() 395 sk_X509_EXTENSION_pop_free(s->ext.ocsp.exts, in tls_parse_ctos_status_request() 397 s->ext.ocsp.exts = in tls_parse_ctos_status_request() 398 d2i_X509_EXTENSIONS(NULL, &ext_data, (int)PACKET_remaining(&exts)); in tls_parse_ctos_status_request() 399 if (s->ext.ocsp.exts == NULL || ext_data != PACKET_end(&exts)) { in tls_parse_ctos_status_request()
|
/freebsd/contrib/wpa/hs20/client/ |
H A D | est.c | 247 STACK_OF(X509_EXTENSION) *exts) in add_csrattrs_oid() 271 STACK_OF(X509_EXTENSION) *exts) in add_csrattrs_ext_req() 301 STACK_OF(X509_EXTENSION) *exts) in add_csrattrs_attr() 314 add_csrattrs_ext_req(ctx, attr->values, exts); in add_csrattrs_attr() 333 STACK_OF(X509_EXTENSION) *exts) in add_csrattrs() 353 add_csrattrs_oid(ctx, ao->d.oid, exts); in add_csrattrs() 356 add_csrattrs_attr(ctx, ao->d.attribute, exts); in add_csrattrs() 374 STACK_OF(X509_EXTENSION) *exts = NULL; in generate_csr() 450 exts = sk_X509_EXTENSION_new_null(); in generate_csr() 451 if (!exts) in generate_csr() [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H 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()
|
H A D | x_crl.c | 94 STACK_OF(X509_EXTENSION) *exts; 134 exts = rev->extensions; 136 for (j = 0; j < sk_X509_EXTENSION_num(exts); j++) { 137 ext = sk_X509_EXTENSION_value(exts, j); 160 STACK_OF(X509_EXTENSION) *exts; in crl_cb() 231 exts = crl->crl.extensions; in crl_cb() 233 for (idx = 0; idx < sk_X509_EXTENSION_num(exts); idx++) { in crl_cb() 235 ext = sk_X509_EXTENSION_value(exts, idx); in crl_cb()
|
H 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()
|
H A D | x509_req.c | 171 const STACK_OF(X509_EXTENSION) *exts, int nid) in X509_REQ_add_extensions_nid() 178 extlen = ASN1_item_i2d((const ASN1_VALUE *)exts, &ext, in X509_REQ_add_extensions_nid() 188 int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts) in X509_REQ_add_extensions() argument 190 return X509_REQ_add_extensions_nid(req, exts, NID_ext_req); in X509_REQ_add_extensions()
|
H A D | v3_conf.c | 370 STACK_OF(X509_EXTENSION) *exts = NULL; in X509V3_EXT_REQ_add_nconf() 371 int ret = X509V3_EXT_add_nconf_sk(conf, ctx, section, &exts); in X509V3_EXT_REQ_add_nconf() 373 if (ret && req != NULL && exts != NULL) in X509V3_EXT_REQ_add_nconf() 374 ret = X509_REQ_add_extensions(req, exts); in X509V3_EXT_REQ_add_nconf() 375 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); in X509V3_EXT_REQ_add_nconf()
|
H A D | v3_utl.c | 488 STACK_OF(X509_EXTENSION) *exts; in STACK_OF() 491 exts = X509_REQ_get_extensions(x); in STACK_OF() 492 gens = X509V3_get_d2i(exts, NID_subject_alt_name, NULL, NULL); in STACK_OF() 495 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free); in STACK_OF()
|
/freebsd/crypto/openssl/test/recipes/25-test_eai_data/ |
H A D | kdc.sh | 13 exts=$( 34 printf "%s\n" "$exts" 41 -extfile <(printf "%s\n" "$exts")
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | tconversion.pl | 150 my $exts = shift @_; 153 run(app(["openssl", "x509", "-noout", "-ext", $exts, 156 "$cert '$exts' output should contain $expected different lines");
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | X509_REQ_get_extensions.pod | 14 int X509_REQ_add_extensions(X509_REQ *req, const STACK_OF(X509_EXTENSION) *exts); 16 const STACK_OF(X509_EXTENSION) *exts, int nid); 25 X509_REQ_add_extensions() adds to I<req> a list of X.509 extensions I<exts>,
|
H 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>.
|
/freebsd/crypto/openssl/crypto/cmp/ |
H 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() 287 X509_EXTENSIONS *exts = NULL; in OSSL_CMP_CTX_setup_CRM() local 326 && (exts = X509_REQ_get_extensions(ctx->p10CSR)) == NULL) in OSSL_CMP_CTX_setup_CRM() 332 && !add1_extension(&exts, NID_subject_alt_name, crit, default_sans)) in OSSL_CMP_CTX_setup_CRM() 335 && !add_extensions(&exts, ctx->reqExtensions)) in OSSL_CMP_CTX_setup_CRM() 338 && !add1_extension(&exts, NID_subject_alt_name, in OSSL_CMP_CTX_setup_CRM() 342 && !add1_extension(&exts, NID_certificate_policies, in OSSL_CMP_CTX_setup_CRM() 345 if (!OSSL_CRMF_MSG_set0_extensions(crm, exts)) in OSSL_CMP_CTX_setup_CRM() [all …]
|
H A D | cmp_ctx.c | 147 #define X509_EXTENSIONS_free(exts) \ argument 148 sk_X509_EXTENSION_pop_free(exts, X509_EXTENSION_free) 688 int OSSL_CMP_CTX_set0_reqExtensions(OSSL_CMP_CTX *ctx, X509_EXTENSIONS *exts) in DEFINE_OSSL_CMP_CTX_set1_up_ref() 695 if (sk_GENERAL_NAME_num(ctx->subjectAltNames) > 0 && exts != NULL in DEFINE_OSSL_CMP_CTX_set1_up_ref() 696 && X509v3_get_ext_by_NID(exts, NID_subject_alt_name, -1) >= 0) { in DEFINE_OSSL_CMP_CTX_set1_up_ref() 701 ctx->reqExtensions = exts; in DEFINE_OSSL_CMP_CTX_set1_up_ref()
|
/freebsd/crypto/openssl/apps/ |
H 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() 1208 const STACK_OF(X509_EXTENSION) *exts = NULL; in print_x509v3_exts() 1216 exts = X509_get0_extensions(x); in print_x509v3_exts() 1217 if ((num = sk_X509_EXTENSION_num(exts)) <= 0) { in print_x509v3_exts() [all …]
|
/freebsd/crypto/openssh/ |
H A D | sftp-client.c | 108 u_int exts; member 472 ret->exts = 0; in sftp_init() 512 ret->exts |= SFTP_EXT_POSIX_RENAME; in sftp_init() 516 ret->exts |= SFTP_EXT_STATVFS; in sftp_init() 520 ret->exts |= SFTP_EXT_FSTATVFS; in sftp_init() 524 ret->exts |= SFTP_EXT_HARDLINK; in sftp_init() 528 ret->exts |= SFTP_EXT_FSYNC; in sftp_init() 532 ret->exts |= SFTP_EXT_LSETSTAT; in sftp_init() 536 ret->exts |= SFTP_EXT_LIMITS; in sftp_init() 540 ret->exts |= SFTP_EXT_PATH_EXPAND; in sftp_init() [all …]
|
/freebsd/crypto/openssl/crypto/crmf/ |
H 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()
|
/freebsd/crypto/openssh/regress/unittests/sshkey/ |
H A D | test_sshkey.c | 61 struct sshbuf *ca_buf, *pk, *principals, *critopts, *exts; in build_cert() local 88 exts = sshbuf_new(); in build_cert() 89 ASSERT_PTR_NE(exts, NULL); in build_cert() 102 ASSERT_INT_EQ(sshbuf_put_stringb(b, exts), 0); /* extensions */ in build_cert() 111 sshbuf_free(exts); in build_cert()
|
/freebsd/crypto/openssl/test/ |
H 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()
|
/freebsd/contrib/bmake/mk/ |
H A D | meta2deps.py | 253 self.exts = target_spec_exts(self.target_spec) 308 print("ext_list=", self.exts, file=self.debug_out) 384 for e in self.exts:
|
/freebsd/share/mk/ |
H A D | meta2deps.py | 253 self.exts = target_spec_exts(self.target_spec) 308 print("ext_list=", self.exts, file=self.debug_out) 384 for e in self.exts:
|
/freebsd/crypto/openssl/crypto/ocsp/ |
H 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()
|