Home
last modified time | relevance | path

Searched refs:exts (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/crypto/openssl/test/certs/
H A Dmkcert.sh92 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 Dextensions_cust.c81 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 Dextensions.c419 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 Dextensions_srvr.c309 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 Dest.c247 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 Dt_req.c43 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 Dx_crl.c94 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 Dv3_prn.c140 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 Dx509_req.c171 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 Dv3_conf.c370 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 Dv3_utl.c488 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 Dkdc.sh13 exts=$(
34 printf "%s\n" "$exts"
41 -extfile <(printf "%s\n" "$exts")
/freebsd/crypto/openssl/test/recipes/
H A Dtconversion.pl150 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 DX509_REQ_get_extensions.pod14 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 DOSSL_CRMF_MSG_set0_validity.pod29 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 Dcmp_msg.c123 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 Dcmp_ctx.c147 #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 Dx509.c199 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 Dsftp-client.c108 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 Dcrmf_lib.c319 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 Dtest_sshkey.c61 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 Dcmp_ctx_test.c209 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 Dmeta2deps.py253 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 Dmeta2deps.py253 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 Docsp_ext.c244 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()

12