/openssl/crypto/conf/ |
H A D | conf_def.c | 53 #define scan_esc(conf,p) (((IS_EOF((conf),(p)[1]))?((p)+1):((p)+2))) argument 126 if (conf == NULL) in def_init_default() 129 memset(conf, 0, sizeof(*conf)); in def_init_default() 139 if (conf == NULL) in def_init_WIN32() 142 memset(conf, 0, sizeof(*conf)); in def_init_WIN32() 161 if (conf == NULL) in def_destroy_data() 163 _CONF_free_data(conf); in def_destroy_data() 721 || (conf->flag_dollarid && IS_DOLLAR(conf, *e))) in str_copy() 731 || (conf->flag_dollarid && IS_DOLLAR(conf, *e))) in str_copy() 919 while (IS_WS(conf, *p) && (!IS_EOF(conf, *p))) in eat_ws() [all …]
|
H A D | conf_lib.c | 32 conf->data = hash; in CONF_set_nconf() 101 if (conf == NULL) { in STACK_OF() 114 if (conf == NULL) { in CONF_get_string() 131 if (conf == NULL) { in CONF_get_number() 206 if (conf == NULL) in NCONF_free() 208 conf->meth->destroy(conf); in NCONF_free() 213 if (conf == NULL) in NCONF_free_data() 215 conf->meth->destroy_data(conf); in NCONF_free_data() 257 return conf->meth->load(conf, file, eline); in NCONF_load() 282 return conf->meth->load_bio(conf, bp, eline); in NCONF_load_bio() [all …]
|
H A D | conf_def.h | 30 #define IS_COMMENT(conf,c) is_keytype(conf, c, CONF_COMMENT) argument 31 #define IS_FCOMMENT(conf,c) is_keytype(conf, c, CONF_FCOMMENT) argument 32 #define IS_EOF(conf,c) is_keytype(conf, c, CONF_EOF) argument 33 #define IS_ESC(conf,c) is_keytype(conf, c, CONF_ESC) argument 34 #define IS_NUMBER(conf,c) is_keytype(conf, c, CONF_NUMBER) argument 35 #define IS_WS(conf,c) is_keytype(conf, c, CONF_WS) argument 36 #define IS_ALNUM(conf,c) is_keytype(conf, c, CONF_ALNUM) argument 37 #define IS_ALNUM_PUNCT(conf,c) is_keytype(conf, c, CONF_ALNUM_PUNCT) argument 38 #define IS_QUOTE(conf,c) is_keytype(conf, c, CONF_QUOTE) argument 39 #define IS_DQUOTE(conf,c) is_keytype(conf, c, CONF_DQUOTE) argument [all …]
|
H A D | conf_api.c | 31 return conf->data != NULL ? lh_CONF_VALUE_retrieve(conf->data, &vv) : NULL; in _CONF_get_section() 74 if (conf == NULL) in _CONF_get_string() 76 if (conf->data == NULL) in _CONF_get_string() 120 int _CONF_new_data(CONF *conf) in _CONF_new_data() argument 122 if (conf == NULL) in _CONF_new_data() 124 if (conf->data == NULL) { in _CONF_new_data() 126 if (conf->data == NULL) in _CONF_new_data() 136 void _CONF_free_data(CONF *conf) in _CONF_free_data() argument 138 if (conf == NULL) in _CONF_free_data() 142 if (conf->data == NULL) in _CONF_free_data() [all …]
|
/openssl/test/recipes/ |
H A D | 80-test_ssl_new.t | 141 foreach my $conf (@conf_files) { 142 subtest "Test configuration $conf" => sub { 144 test_conf($conf, 146 defined($skip{$conf}) ? $skip{$conf} : $no_tls, 148 test_conf($conf, 150 defined($skip{$conf}) ? $skip{$conf} : $no_tls, 152 test_conf($conf, 154 defined($skip{$conf}) ? $skip{$conf} : $no_tls, 160 my ($conf, $check_source, $skip, $provider) = @_; 164 my $output_file = $conf . "." . $provider; [all …]
|
H A D | 04-test_encoder_decoder.t | 30 my $conf = srctop_file("test", "default.cnf"); 33 "-config", $conf, 40 "-config", $conf, 45 my $conf = srctop_file("test", "fips-and-base.cnf"); 48 "-config", $conf,
|
H A D | 30-test_evp.t | 148 my $conf = srctop_file("test", $_); 152 "-config", $conf, 154 "running evp_test -config $conf $f"); 158 my $conf = srctop_file("test", $defaultcnf); 161 "-config", $conf, 163 "running evp_test -config $conf $f");
|
/openssl/crypto/ts/ |
H A D | ts_conf.c | 137 char *serial = NCONF_get_string(conf, section, ENV_SERIAL); in TS_CONF_set_serial() 151 int TS_CONF_set_crypto_device(CONF *conf, const char *section, in TS_CONF_set_crypto_device() argument 194 int TS_CONF_set_signer_cert(CONF *conf, const char *section, in TS_CONF_set_signer_cert() argument 201 cert = NCONF_get_string(conf, section, ENV_SIGNER_CERT); in TS_CONF_set_signer_cert() 240 int TS_CONF_set_signer_key(CONF *conf, const char *section, in TS_CONF_set_signer_key() argument 247 key = NCONF_get_string(conf, section, ENV_SIGNER_KEY); in TS_CONF_set_signer_key() 263 int TS_CONF_set_signer_digest(CONF *conf, const char *section, in TS_CONF_set_signer_digest() argument 269 md = NCONF_get_string(conf, section, ENV_SIGNER_DIGEST); in TS_CONF_set_signer_digest() 287 int TS_CONF_set_def_policy(CONF *conf, const char *section, in TS_CONF_set_def_policy() argument 442 static int ts_CONF_add_flag(CONF *conf, const char *section, in ts_CONF_add_flag() argument [all …]
|
/openssl/demos/bio/ |
H A D | build.info | 1 PROGRAMS{noinst}=client-arg sconnect server-cmod client-conf saccept server-arg server-conf 15 INCLUDE[client-conf]=../../include 16 SOURCE[client-conf]=client-conf.c 17 DEPEND[client-conf]=../../libcrypto ../../libssl 27 INCLUDE[server-conf]=../../include 28 SOURCE[server-conf]=server-conf.c 29 DEPEND[server-conf]=../../libcrypto ../../libssl
|
H A D | descrip.mms | 29 all : client-arg.exe client-conf.exe saccept.exe sconnect.exe - 30 server-arg.exe server-cmod.exe server-conf.exe 33 client-conf.exe : client-conf.obj 38 server-conf.exe : server-conf.obj 42 client-conf.obj : client-conf.c 47 server-conf.obj : server-conf.c
|
H A D | Makefile | 8 client-conf \ 13 server-conf 22 client-conf: client-conf.o 27 server-conf: server-conf.o
|
H A D | client-conf.c | 23 CONF *conf = NULL; in main() local 30 conf = NCONF_new(NULL); in main() 32 if (NCONF_load(conf, "connect.cnf", &errline) <= 0) { in main() 40 sect = NCONF_get_section(conf, "default"); in main() 118 NCONF_free(conf); in main()
|
/openssl/include/openssl/ |
H A D | conf_api.h | 27 CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); 29 CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); 31 STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, 34 int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); 35 char *_CONF_get_string(const CONF *conf, const char *section, 37 long _CONF_get_number(const CONF *conf, const char *section, 40 int _CONF_new_data(CONF *conf); 41 void _CONF_free_data(CONF *conf);
|
H A D | conf.h.in | 92 void CONF_free(LHASH_OF(CONF_VALUE) *conf); 94 int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out); 96 int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out); 112 OSSL_LIB_CTX *NCONF_get0_libctx(const CONF *conf); 118 void NCONF_free(CONF *conf); 119 void NCONF_free_data(CONF *conf); 123 int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); 125 int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); 127 STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, 133 int NCONF_dump_fp(const CONF *conf, FILE *out); [all …]
|
H A D | conftypes.h | 24 int (*init) (CONF *conf); 25 int (*destroy) (CONF *conf); 26 int (*destroy_data) (CONF *conf); 27 int (*load_bio) (CONF *conf, BIO *bp, long *eline); 28 int (*dump) (const CONF *conf, BIO *bp); 29 int (*is_number) (const CONF *conf, char c); 30 int (*to_int) (const CONF *conf, char c); 31 int (*load) (CONF *conf, const char *name, long *eline);
|
H A D | ts.h | 487 const char *TS_CONF_get_tsa_section(CONF *conf, const char *section); 488 int TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb, 491 int TS_CONF_set_crypto_device(CONF *conf, const char *section, 495 int TS_CONF_set_signer_cert(CONF *conf, const char *section, 497 int TS_CONF_set_certs(CONF *conf, const char *section, const char *certs, 499 int TS_CONF_set_signer_key(CONF *conf, const char *section, 502 int TS_CONF_set_signer_digest(CONF *conf, const char *section, 504 int TS_CONF_set_def_policy(CONF *conf, const char *section, 507 int TS_CONF_set_digests(CONF *conf, const char *section, TS_RESP_CTX *ctx); 513 int TS_CONF_set_ess_cert_id_chain(CONF *conf, const char *section, [all …]
|
/openssl/doc/man3/ |
H A D | NCONF_new_ex.pod | 11 #include <openssl/conf.h> 21 void NCONF_free(CONF *conf); 23 int NCONF_load(CONF *conf, const char *file, long *eline); 24 OSSL_LIB_CTX *NCONF_get0_libctx(const CONF *conf); 26 STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *name); 27 STACK_OF(OPENSSL_CSTRING) *NCONF_get_section_names(const CONF *conf); 37 NCONF_free() frees the data associated with I<conf> and then frees the I<conf> 46 NCONF_get0_libctx() gets the library context associated with the I<conf> 50 the I<conf> as B<STACK_OF(OPENSSL_CSTRING)> strings. The individual strings 51 are associated with the I<conf> and will be invalid after I<conf> is [all …]
|
/openssl/crypto/x509/ |
H A D | v3_conf.c | 61 return X509V3_EXT_nconf_int(conf, ctx, NULL, name, value); in X509V3_EXT_nconf() 74 return do_ext_nconf(conf, ctx, ext_nid, crit, value); in X509V3_EXT_nconf_nid() 98 nval = NCONF_get_section(conf, value + 1); in do_ext_nconf() 321 if ((nval = NCONF_get_section(conf, section)) == NULL) in X509V3_EXT_add_nconf_sk() 454 void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf) in X509V3_set_nconf() argument 461 ctx->db = conf; in X509V3_set_nconf() 506 CONF_set_nconf(ctmp, conf); in X509V3_EXT_conf() 521 CONF_set_nconf(ctmp, conf); in X509V3_EXT_conf_nid() 563 CONF_set_nconf(ctmp, conf); in X509V3_EXT_add_conf() 580 CONF_set_nconf(ctmp, conf); in X509V3_EXT_CRL_add_conf() [all …]
|
/openssl/test/ |
H A D | conf_include_test.c | 72 static CONF *conf; variable 86 if (!TEST_int_gt(NCONF_load_bio(conf, in, &errline), 0) in test_load_config() 98 if (!TEST_int_gt(CONF_modules_load(conf, NULL, 0), 0)) { in test_load_config() 105 if (!TEST_int_eq(NCONF_get_number(conf, "CA_default", "default_days", &val), 1) in test_load_config() 113 if (!TEST_int_eq(NCONF_get_number(conf, "req", "default_bits", &val), 1) in test_load_config() 120 str = NCONF_get_string(conf, "req_distinguished_name", "countryName_default"); in test_load_config() 129 if (!TEST_int_eq(NCONF_get_number(conf, "null_sect", "activate", &val), 1) in test_load_config() 135 if (!TEST_int_eq(NCONF_get_number(conf, "default_sect", "activate", &val), 1) in test_load_config() 141 if (!TEST_int_eq(NCONF_get_number(conf, "legacy_sect", "activate", &val), 1) in test_load_config() 252 if (!TEST_ptr(conf = NCONF_new(NULL))) in setup_tests() [all …]
|
H A D | confdump.c | 33 CONF *conf = NCONF_new(NCONF_default()); in main() local 37 if (conf != NULL && NCONF_load(conf, argv[1], &eline)) { in main() 40 section_names = NCONF_get_section_names(conf); in main() 42 dump_section(sk_OPENSSL_CSTRING_value(section_names, i), conf); in main() 49 NCONF_free(conf); in main()
|
/openssl/test/helpers/ |
H A D | ssl_test_ctx.c | 754 OPENSSL_free(conf->client.npn_protocols); in ssl_test_extra_conf_free_data() 755 OPENSSL_free(conf->server.npn_protocols); in ssl_test_extra_conf_free_data() 756 OPENSSL_free(conf->server2.npn_protocols); in ssl_test_extra_conf_free_data() 757 OPENSSL_free(conf->client.alpn_protocols); in ssl_test_extra_conf_free_data() 760 OPENSSL_free(conf->client.reneg_ciphers); in ssl_test_extra_conf_free_data() 761 OPENSSL_free(conf->server.srp_user); in ssl_test_extra_conf_free_data() 762 OPENSSL_free(conf->server.srp_password); in ssl_test_extra_conf_free_data() 763 OPENSSL_free(conf->server2.srp_user); in ssl_test_extra_conf_free_data() 764 OPENSSL_free(conf->server2.srp_password); in ssl_test_extra_conf_free_data() 765 OPENSSL_free(conf->client.srp_user); in ssl_test_extra_conf_free_data() [all …]
|
/openssl/apps/ |
H A D | ts.c | 160 CONF *conf = NULL; in ts_main() local 312 if ((conf = load_config_file(configfile)) == NULL) in ts_main() 331 if ((conf == NULL) || (token_in != 0)) in ts_main() 351 NCONF_free(conf); in ts_main() 372 CONF *conf = app_load_config(configfile); in load_config_file() local 374 if (conf != NULL) { in load_config_file() 388 if (!add_oid_section(conf)) in load_config_file() 391 return conf; in load_config_file() 738 if (!TS_CONF_set_policies(conf, section, resp_ctx)) in create_response() 740 if (!TS_CONF_set_digests(conf, section, resp_ctx)) in create_response() [all …]
|
H A D | fipsinstall.c | 470 CONF *conf = NULL; in generate_config_and_load() local 482 if (conf == NULL) in generate_config_and_load() 488 return conf; in generate_config_and_load() 490 NCONF_free(conf); in generate_config_and_load() 497 if (conf != NULL) { in free_config_and_unload() 498 NCONF_free(conf); in free_config_and_unload() 520 CONF *conf = NULL; in verify_config() local 524 if (conf == NULL) in verify_config() 567 NCONF_free(conf); in verify_config() 591 CONF *conf = NULL; in fipsinstall_main() local [all …]
|
/openssl/crypto/ct/ |
H A D | ct_log.c | 45 CONF *conf; member 141 const CONF *conf, const char *section) in ctlog_new_from_conf() argument 143 const char *description = NCONF_get_string(conf, section, "description"); in ctlog_new_from_conf() 151 pkey_base64 = NCONF_get_string(conf, section, "key"); in ctlog_new_from_conf() 194 ret = ctlog_new_from_conf(load_ctx->log_store, &ct_log, load_ctx->conf, tmp); in ctlog_store_load_log() 224 load_ctx->conf = NCONF_new(NULL); in CTLOG_STORE_load_file() 225 if (load_ctx->conf == NULL) in CTLOG_STORE_load_file() 228 if (NCONF_load(load_ctx->conf, file, NULL) <= 0) { in CTLOG_STORE_load_file() 233 enabled_logs = NCONF_get_string(load_ctx->conf, NULL, "enabled_logs"); in CTLOG_STORE_load_file() 247 NCONF_free(load_ctx->conf); in CTLOG_STORE_load_file()
|
/openssl/fuzz/ |
H A D | conf.c | 28 CONF *conf; in FuzzerTestOneInput() local 35 conf = NCONF_new(NULL); in FuzzerTestOneInput() 38 NCONF_load_bio(conf, in, &eline); in FuzzerTestOneInput() 39 NCONF_free(conf); in FuzzerTestOneInput()
|