Home
last modified time | relevance | path

Searched refs:cnf (Results 1 – 25 of 88) sorted by relevance

1234

/openssl/crypto/asn1/
H A Dasn_mstbl.c64 CONF_VALUE *cnf = NULL; in do_tcreate() local
74 cnf = sk_CONF_VALUE_value(lst, i); in do_tcreate()
75 if (cnf->value == NULL) in do_tcreate()
77 if (strcmp(cnf->name, "min") == 0) { in do_tcreate()
78 tbl_min = strtoul(cnf->value, &eptr, 0); in do_tcreate()
81 } else if (strcmp(cnf->name, "max") == 0) { in do_tcreate()
82 tbl_max = strtoul(cnf->value, &eptr, 0); in do_tcreate()
85 } else if (strcmp(cnf->name, "mask") == 0) { in do_tcreate()
89 if (strcmp(cnf->value, "nomask") == 0) in do_tcreate()
101 if (cnf) in do_tcreate()
[all …]
H A Dasn1_gen.c66 static ASN1_TYPE *generate_v3(const char *str, X509V3_CTX *cnf, int depth,
81 X509V3_CTX cnf; in ASN1_generate_nconf() local
86 X509V3_set_nconf(&cnf, nconf); in ASN1_generate_nconf()
87 return ASN1_generate_v3(str, &cnf); in ASN1_generate_nconf()
90 ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf) in ASN1_generate_v3() argument
93 ASN1_TYPE *ret = generate_v3(str, cnf, 0, &err); in ASN1_generate_v3()
128 if (!cnf) { in generate_v3()
415 if (!cnf) in asn1_multi()
417 sect = X509V3_get_section(cnf, (char *)section); in asn1_multi()
422 generate_v3(sk_CONF_VALUE_value(sect, i)->value, cnf, in asn1_multi()
[all …]
/openssl/crypto/x509/
H A Dv3_ist.c48 if (cnf == NULL) {
51 if (strcmp(cnf->name, "signTool") == 0) {
54 || cnf->value == NULL
55 || !ASN1_STRING_set(ist->signTool, cnf->value, strlen(cnf->value))) {
59 } else if (strcmp(cnf->name, "cATool") == 0) {
62 || cnf->value == NULL
63 || !ASN1_STRING_set(ist->cATool, cnf->value, strlen(cnf->value))) {
70 || cnf->value == NULL
71 || !ASN1_STRING_set(ist->signToolCert, cnf->value, strlen(cnf->value))) {
78 || cnf->value == NULL
[all …]
H A Dv3_cpols.c97 CONF_VALUE *cnf; variable
115 if (cnf->value != NULL || cnf->name == NULL) {
120 pstr = cnf->name;
170 CONF_VALUE *cnf; in policy_section() local
185 X509V3_conf_err(cnf); in policy_section()
216 if (*cnf->value != '@') { in policy_section()
218 X509V3_conf_err(cnf); in policy_section()
240 X509V3_conf_err(cnf); in policy_section()
294 CONF_VALUE *cnf; in notice_section() local
315 value = cnf->value; in notice_section()
[all …]
H A Dv3_crld.c73 if (cnf->value == NULL) { in set_dist_point_name()
78 if (HAS_PREFIX(cnf->name, "fullname")) { in set_dist_point_name()
211 CONF_VALUE *cnf; in crldp_from_section() local
218 cnf = sk_CONF_VALUE_value(nval, i); in crldp_from_section()
247 CONF_VALUE *cnf; in v2i_crld() local
259 cnf = sk_CONF_VALUE_value(nval, i); in v2i_crld()
260 if (cnf->value == NULL) { in v2i_crld()
377 CONF_VALUE *cnf; in v2i_idp() local
386 cnf = sk_CONF_VALUE_value(nval, i); in v2i_idp()
387 name = cnf->name; in v2i_idp()
[all …]
H A Dv3_akid.c102 CONF_VALUE *cnf; in v2i_AUTHORITY_KEYID() local
121 cnf = sk_CONF_VALUE_value(values, i); in v2i_AUTHORITY_KEYID()
122 if (cnf->value != NULL && strcmp(cnf->value, "always") != 0) { in v2i_AUTHORITY_KEYID()
124 "name=%s option=%s", cnf->name, cnf->value); in v2i_AUTHORITY_KEYID()
129 if (cnf->value != NULL) in v2i_AUTHORITY_KEYID()
133 if (cnf->value != NULL) in v2i_AUTHORITY_KEYID()
135 } else if (strcmp(cnf->name, "none") == 0 in v2i_AUTHORITY_KEYID()
136 || strcmp(cnf->name, "keyid") == 0 in v2i_AUTHORITY_KEYID()
137 || strcmp(cnf->name, "issuer") == 0) { in v2i_AUTHORITY_KEYID()
139 "name=%s", cnf->name); in v2i_AUTHORITY_KEYID()
[all …]
H A Dv3_san.c316 if (!ossl_v3_name_cmp(cnf->name, "issuer") in v2i_issuer_alt()
317 && cnf->value && strcmp(cnf->value, "copy") == 0) { in v2i_issuer_alt()
383 CONF_VALUE *cnf; in v2i_subject_alt() local
394 cnf = sk_CONF_VALUE_value(nval, i); in v2i_subject_alt()
395 if (ossl_v3_name_cmp(cnf->name, "email") == 0 in v2i_subject_alt()
396 && cnf->value && strcmp(cnf->value, "copy") == 0) { in v2i_subject_alt()
400 && cnf->value && strcmp(cnf->value, "move") == 0) { in v2i_subject_alt()
478 CONF_VALUE *cnf; in v2i_GENERAL_NAMES() local
489 cnf = sk_CONF_VALUE_value(nval, i); in v2i_GENERAL_NAMES()
607 name = cnf->name; in v2i_GENERAL_NAME_ex()
[all …]
H A Dv3_pci.c248 CONF_VALUE *cnf = sk_CONF_VALUE_value(vals, i); in r2i_pci() local
250 if (!cnf->name || (*cnf->name != '@' && !cnf->value)) { in r2i_pci()
252 X509V3_conf_err(cnf); in r2i_pci()
255 if (*cnf->name == '@') { in r2i_pci()
259 sect = X509V3_get_section(ctx, cnf->name + 1); in r2i_pci()
262 X509V3_conf_err(cnf); in r2i_pci()
274 if (!process_pci_value(cnf, &language, &pathlen, &policy)) { in r2i_pci()
275 X509V3_conf_err(cnf); in r2i_pci()
H A Dv3_info.c108 CONF_VALUE *cnf, ctmp; in v2i_AUTHORITY_INFO_ACCESS() local
119 cnf = sk_CONF_VALUE_value(nval, i); in v2i_AUTHORITY_INFO_ACCESS()
125 ptmp = strchr(cnf->name, ';'); in v2i_AUTHORITY_INFO_ACCESS()
131 ctmp.value = cnf->value; in v2i_AUTHORITY_INFO_ACCESS()
134 if ((objtmp = OPENSSL_strndup(cnf->name, ptmp - cnf->name)) == NULL) in v2i_AUTHORITY_INFO_ACCESS()
/openssl/demos/certs/
H A Dmkcerts.sh7 OPENSSL_CONF=../../apps/openssl.cnf
13 CN="Test Root CA" opensslcmd req -config ca.cnf -x509 -nodes \
16 CN="Test Intermediate CA" opensslcmd req -config ca.cnf -nodes \
20 -extfile ca.cnf -extensions v3_ca -CAcreateserial -out intca.pem
23 CN="Test Server Cert" opensslcmd req -config ca.cnf -nodes \
30 CN="Test Client Cert" opensslcmd req -config ca.cnf -nodes \
37 CN="Test Revoked Cert" opensslcmd req -config ca.cnf -nodes \
87 -config ca.cnf -md sha1
89 -config ca.cnf -md sha1
91 -config ca.cnf -md sha1
[all …]
/openssl/demos/bio/
H A Dserver-conf.c33 CONF_VALUE *cnf; in main() local
64 cnf = sk_CONF_VALUE_value(sect, i); in main()
65 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
70 cnf->name, cnf->value); in main()
74 if (strcmp(cnf->name, "Port") == 0) { in main()
75 port = cnf->value; in main()
77 fprintf(stderr, "Unknown configuration option %s\n", cnf->name); in main()
H A Dclient-conf.c25 CONF_VALUE *cnf; in main() local
53 cnf = sk_CONF_VALUE_value(sect, i); in main()
54 rv = SSL_CONF_cmd(cctx, cnf->name, cnf->value); in main()
59 cnf->name, cnf->value); in main()
63 if (strcmp(cnf->name, "Connect") == 0) { in main()
64 connect_str = cnf->value; in main()
66 fprintf(stderr, "Unknown configuration option %s\n", cnf->name); in main()
/openssl/demos/certs/apps/
H A Dmkacerts.sh12 CN="OpenSSL Test Root CA" opensslcmd req -config apps.cnf -x509 -nodes \
15 CN="OpenSSL Test Intermediate CA" opensslcmd req -config apps.cnf -nodes \
19 -extfile apps.cnf -extensions v3_ca -CAcreateserial -out intca.pem
21 CN="Test Client Cert" opensslcmd req -config apps.cnf -nodes \
25 -extfile apps.cnf -extensions usr_cert -CAcreateserial | \
28 CN="Test Server Cert" opensslcmd req -config apps.cnf -nodes \
32 -extfile apps.cnf -extensions usr_cert -CAcreateserial | \
35 CN="Test Server Cert #2" opensslcmd req -config apps.cnf -nodes \
39 -extfile apps.cnf -extensions usr_cert -CAcreateserial | \
H A Dmkxcerts.sh13 -config apps.cnf -extensions usr_cert -x509 -nodes \
16 -config apps.cnf -extensions usr_cert -x509 -nodes \
19 -config apps.cnf -extensions usr_cert -x509 -nodes \
28 -config apps.cnf -extensions ec_cert -x509 -nodes \
33 -config apps.cnf -extensions ec_cert -x509 -nodes \
/openssl/test/recipes/
H A D80-test_ca.t23 my $cnf = srctop_file("test","ca-and-certs.cnf");
40 $ENV{OPENSSL_CONFIG} = qq(-config "$cnf");
47 $ENV{OPENSSL_CONFIG} = qq(-config "$cnf");
64 $ENV{OPENSSL_CONFIG} = qq(-config "$cnf");
74 $cnf,
87 ok(run(app(["openssl", "ca", "-batch", "-config", $cnf, "-extensions", "empty",
151 '-config', $cnf,
165 '-config', $cnf,
175 '-config', $cnf,
194 '-config', $cnf,
H A D25-test_verify_store.t23 my $cnf = srctop_file("test", "ca-and-certs.cnf");
36 -config => $cnf,
48 -extfile => $cnf );
77 -config => $cnf,
90 -extfile => $cnf )
H A D80-test_ssl_old.t49 my $cnf = srctop_file("test", "ca-and-certs.cnf");
190 ok(run(app([@reqcmd, "-config", $cnf,
198 "-extfile", $cnf, "-extensions", "v3_ca"],
224 ok(run(app([@reqcmd, "-config", $cnf, "-section", "userreq",
233 "-extfile", $cnf, "-extensions", "v3_ee"],
259 ok(run(app([@reqcmd, "-new", "-config", $cnf,
272 "-extfile", $cnf,
305 ok(run(app([@reqcmd, "-config", $cnf,
319 "-extfile", $cnf,
/openssl/crypto/
H A Dprovider_conf.c77 const CONF *cnf, in provider_conf_params_internal() argument
84 sect = NCONF_get_section(cnf, value); in provider_conf_params_internal()
158 const CONF *cnf) in provider_conf_params() argument
167 value, cnf, visited); in provider_conf_params()
203 int soft, const CONF *cnf) in provider_conf_activate() argument
240 ok = provider_conf_params(prov, NULL, NULL, value, cnf); in provider_conf_activate()
325 ecmds = NCONF_get_section(cnf, value); in provider_conf_load()
399 static int provider_conf_init(CONF_IMODULE *md, const CONF *cnf) in provider_conf_init() argument
409 elist = NCONF_get_section(cnf, CONF_imodule_get_value(md)); in provider_conf_init()
418 if (!provider_conf_load(NCONF_get0_libctx((CONF *)cnf), in provider_conf_init()
[all …]
/openssl/crypto/conf/
H A Dconf_mod.c82 const CONF *cnf);
111 static int conf_diagnostics(const CONF *cnf) in conf_diagnostics() argument
136 if (!cnf) in CONF_modules_load()
139 if (conf_diagnostics(cnf)) in CONF_modules_load()
158 values = NCONF_get_section(cnf, vsection); in CONF_modules_load()
274 md = module_load_dso(cnf, name, value); in module_run()
284 ret = module_init(md, name, value, cnf); in module_run()
297 static CONF_MODULE *module_load_dso(const CONF *cnf, in module_load_dso() argument
308 path = _CONF_get_string(cnf, value, "path"); in module_load_dso()
430 const CONF *cnf) in module_init() argument
[all …]
/openssl/test/ocsp-tests/
H A Dmk-ocsp-cert-chain.sh23 -config ca.cnf \
40 -config ca.cnf \
48 -config ca.cnf \
67 -config ca.cnf \
76 -config ca.cnf \
90 -config ca.cnf \
/openssl/crypto/evp/
H A Devp_cnf.c21 static int alg_module_init(CONF_IMODULE *md, const CONF *cnf) in alg_module_init() argument
32 if ((sktmp = NCONF_get_section(cnf, oid_section)) == NULL) { in alg_module_init()
50 NCONF_get0_libctx((CONF *)cnf), m > 0, 0)) { in alg_module_init()
55 if (!evp_set_default_properties_int(NCONF_get0_libctx((CONF *)cnf), in alg_module_init()
/openssl/crypto/engine/
H A Deng_cnf.c43 static int int_engine_configure(const char *name, const char *value, const CONF *cnf) in int_engine_configure() argument
57 ecmds = NCONF_get_section(cnf, value); in int_engine_configure()
112 if (!NCONF_get_number_e(cnf, value, "init", &do_init)) in int_engine_configure()
147 static int int_engine_module_init(CONF_IMODULE *md, const CONF *cnf) in int_engine_module_init() argument
155 elist = NCONF_get_section(cnf, CONF_imodule_get_value(md)); in int_engine_module_init()
164 if (!int_engine_configure(cval->name, cval->value, cnf)) in int_engine_module_init()
/openssl/test/
H A DREADME.ssltest.md6 Each `ssl_*.cnf.in` file contains a number of test configurations. These files
14 `test/ssl-tests/*.cnf` files.
16 For more details, see `ssl-tests/01-simple.cnf.in` for an example.
216 existing `*.cnf.in` files (for example, `01-simple.cnf.in`).
224 ssl-tests/my.cnf.in default > ssl-tests/my.cnf
232 ssl-tests/01-simple.cnf.in default > ssl-tests/01-simple.cnf
264 test/ssl-tests/01-simple.cnf default
268 $ CTLOG_FILE=test/ct/log_list.cnf TEST_CERTS_DIR=test/certs \
285 `*.cnf` file from the `*.cnf.in` input first.
294 $ make test TESTS=test_ssl_new SSL_TESTS="0*.cnf.in"
[all …]
/openssl/doc/man3/
H A DCONF_modules_load_file.pod18 int CONF_modules_load(const CONF *cnf, const char *appname,
27 L<X509_get_default_cert_area(3)> with the filename C<"openssl.cnf"> appended.
43 reads configuration information from B<cnf>.
118 if (CONF_modules_load_file_ex(NULL, "/something/app.cnf", "myapp",
127 CONF *cnf = NULL;
130 fp = fopen("/somepath/app.cnf", "r");
135 cnf = NCONF_new_ex(libctx, NULL);
136 if (NCONF_load_fp(cnf, fp, &eline) == 0) {
140 } else if (CONF_modules_load(cnf, "appname", 0) <= 0) {
146 NCONF_free(cnf);
/openssl/apps/
H A Dasn1parse.c322 CONF *cnf = NULL; in do_generate() local
328 if ((cnf = app_load_config(genconf)) == NULL) in do_generate()
331 genstr = NCONF_get_string(cnf, "default", "asn1"); in do_generate()
338 atyp = ASN1_generate_nconf(genstr, cnf); in do_generate()
339 NCONF_free(cnf); in do_generate()
340 cnf = NULL; in do_generate()
361 NCONF_free(cnf); in do_generate()

Completed in 63 milliseconds

1234