/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() 713 || (conf->flag_dollarid && IS_DOLLAR(conf, *e))) in str_copy() 723 || (conf->flag_dollarid && IS_DOLLAR(conf, *e))) in str_copy() 913 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 | 129 foreach my $conf (@conf_files) { 130 subtest "Test configuration $conf" => sub { 132 test_conf($conf, 134 defined($skip{$conf}) ? $skip{$conf} : $no_tls, 136 test_conf($conf, 138 defined($skip{$conf}) ? $skip{$conf} : $no_tls, 140 test_conf($conf, 142 defined($skip{$conf}) ? $skip{$conf} : $no_tls, 152 my $output_file = $conf . "." . $provider; 179 "running ssl_test $conf"); [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 | 132 my $conf = srctop_file("test", $_); 136 "-config", $conf, 138 "running evp_test -config $conf $f"); 142 my $conf = srctop_file("test", $defaultcnf); 145 "-config", $conf, 147 "running evp_test -config $conf $f");
|
/openssl/demos/bio/ |
H A D | Makefile | 19 all: client-arg client-conf saccept sconnect server-arg server-cmod server-conf 22 client-conf: client-conf.o 27 server-conf: server-conf.o 29 client-arg client-conf saccept sconnect server-arg server-cmod server-conf: 33 $(RM) *.o client-arg client-conf saccept sconnect server-arg server-cmod server-conf
|
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 | client-conf.c | 23 CONF *conf = NULL; in main() local 29 conf = NCONF_new(NULL); in main() 31 if (NCONF_load(conf, "connect.cnf", &errline) <= 0) { in main() 39 sect = NCONF_get_section(conf, "default"); in main() 115 NCONF_free(conf); in main()
|
/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/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 | 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 | 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 | ts.h | 470 const char *TS_CONF_get_tsa_section(CONF *conf, const char *section); 471 int TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb, 474 int TS_CONF_set_crypto_device(CONF *conf, const char *section, 478 int TS_CONF_set_signer_cert(CONF *conf, const char *section, 480 int TS_CONF_set_certs(CONF *conf, const char *section, const char *certs, 482 int TS_CONF_set_signer_key(CONF *conf, const char *section, 485 int TS_CONF_set_signer_digest(CONF *conf, const char *section, 487 int TS_CONF_set_def_policy(CONF *conf, const char *section, 490 int TS_CONF_set_digests(CONF *conf, const char *section, TS_RESP_CTX *ctx); 496 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() 314 if ((nval = NCONF_get_section(conf, section)) == NULL) in X509V3_EXT_add_nconf_sk() 447 void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf) in X509V3_set_nconf() argument 454 ctx->db = conf; in X509V3_set_nconf() 499 CONF_set_nconf(ctmp, conf); in X509V3_EXT_conf() 514 CONF_set_nconf(ctmp, conf); in X509V3_EXT_conf_nid() 556 CONF_set_nconf(ctmp, conf); in X509V3_EXT_add_conf() 573 CONF_set_nconf(ctmp, conf); in X509V3_EXT_CRL_add_conf() [all …]
|
/openssl/test/ |
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()
|
H A D | conf_include_test.c | 68 static CONF *conf; variable 79 if (!TEST_int_gt(NCONF_load_bio(conf, in, &errline), 0) in test_load_config() 91 if (!TEST_int_gt(CONF_modules_load(conf, NULL, 0), 0)) { in test_load_config() 98 if (!TEST_int_eq(NCONF_get_number(conf, "CA_default", "default_days", &val), 1) in test_load_config() 106 if (!TEST_int_eq(NCONF_get_number(conf, "req", "default_bits", &val), 1) in test_load_config() 113 str = NCONF_get_string(conf, "req_distinguished_name", "countryName_default"); in test_load_config() 199 if (!TEST_ptr(conf = NCONF_new(NULL))) in setup_tests() 236 NCONF_free(conf); in cleanup_tests()
|
/openssl/test/helpers/ |
H A D | ssl_test_ctx.c | 737 OPENSSL_free(conf->client.npn_protocols); in ssl_test_extra_conf_free_data() 738 OPENSSL_free(conf->server.npn_protocols); in ssl_test_extra_conf_free_data() 739 OPENSSL_free(conf->server2.npn_protocols); in ssl_test_extra_conf_free_data() 740 OPENSSL_free(conf->client.alpn_protocols); in ssl_test_extra_conf_free_data() 743 OPENSSL_free(conf->client.reneg_ciphers); in ssl_test_extra_conf_free_data() 744 OPENSSL_free(conf->server.srp_user); in ssl_test_extra_conf_free_data() 745 OPENSSL_free(conf->server.srp_password); in ssl_test_extra_conf_free_data() 746 OPENSSL_free(conf->server2.srp_user); in ssl_test_extra_conf_free_data() 747 OPENSSL_free(conf->server2.srp_password); in ssl_test_extra_conf_free_data() 748 OPENSSL_free(conf->client.srp_user); in ssl_test_extra_conf_free_data() [all …]
|
/openssl/apps/ |
H A D | fipsinstall.c | 188 CONF *conf = NULL; in generate_config_and_load() local 202 if (conf == NULL) in generate_config_and_load() 208 return conf; in generate_config_and_load() 210 NCONF_free(conf); in generate_config_and_load() 217 if (conf != NULL) { in free_config_and_unload() 218 NCONF_free(conf); in free_config_and_unload() 240 CONF *conf = NULL; in verify_config() local 244 if (conf == NULL) in verify_config() 287 NCONF_free(conf); in verify_config() 311 CONF *conf = NULL; in fipsinstall_main() local [all …]
|
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() 378 p = NCONF_get_string(conf, NULL, ENV_OID_FILE); in load_config_file() 389 if (!add_oid_section(conf)) in load_config_file() 392 return conf; in load_config_file() 736 if (!TS_CONF_set_policies(conf, section, resp_ctx)) in create_response() [all …]
|
/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()
|
H A D | build.info | 12 PROGRAMS{noinst}=asn1 asn1parse bignum bndiv client conf crl server x509 54 SOURCE[conf]=conf.c driver.c 55 INCLUDE[conf]=../include {- $ex_inc -} 56 DEPEND[conf]=../libcrypto {- $ex_lib -} 76 …PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test se… 119 SOURCE[conf-test]=conf.c test-corpus.c 120 INCLUDE[conf-test]=../include 121 DEPEND[conf-test]=../libcrypto
|
/openssl/crypto/ct/ |
H A D | ct_log.c | 45 CONF *conf; member 148 const CONF *conf, const char *section) in ctlog_new_from_conf() argument 150 const char *description = NCONF_get_string(conf, section, "description"); in ctlog_new_from_conf() 158 pkey_base64 = NCONF_get_string(conf, section, "key"); in ctlog_new_from_conf() 201 ret = ctlog_new_from_conf(load_ctx->log_store, &ct_log, load_ctx->conf, tmp); in ctlog_store_load_log() 234 load_ctx->conf = NCONF_new(NULL); in CTLOG_STORE_load_file() 235 if (load_ctx->conf == NULL) in CTLOG_STORE_load_file() 238 if (NCONF_load(load_ctx->conf, file, NULL) <= 0) { in CTLOG_STORE_load_file() 243 enabled_logs = NCONF_get_string(load_ctx->conf, NULL, "enabled_logs"); in CTLOG_STORE_load_file() 257 NCONF_free(load_ctx->conf); in CTLOG_STORE_load_file()
|