Lines Matching refs:conf

13 #include "internal/conf.h"
17 #include <openssl/conf.h>
26 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash)
31 default_CONF_method->init(conf);
32 conf->data = hash;
46 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,
62 ltmp = CONF_load_bio(conf, in, eline);
69 LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,
78 ltmp = CONF_load_bio(conf, btmp, eline);
84 LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp,
90 CONF_set_nconf(&ctmp, conf);
98 STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf,
101 if (conf == NULL) {
106 CONF_set_nconf(&ctmp, conf);
111 char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group,
114 if (conf == NULL) {
119 CONF_set_nconf(&ctmp, conf);
124 long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group,
131 if (conf == NULL) {
136 CONF_set_nconf(&ctmp, conf);
143 void CONF_free(LHASH_OF(CONF_VALUE) *conf)
146 CONF_set_nconf(&ctmp, conf);
151 int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out)
160 ret = CONF_dump_bio(conf, btmp);
166 int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out)
170 CONF_set_nconf(&ctmp, conf);
204 void NCONF_free(CONF *conf)
206 if (conf == NULL)
208 conf->meth->destroy(conf);
211 void NCONF_free_data(CONF *conf)
213 if (conf == NULL)
215 conf->meth->destroy_data(conf);
218 OSSL_LIB_CTX *NCONF_get0_libctx(const CONF *conf)
220 return conf->libctx;
250 int NCONF_load(CONF *conf, const char *file, long *eline)
252 if (conf == NULL) {
257 return conf->meth->load(conf, file, eline);
261 int NCONF_load_fp(CONF *conf, FILE *fp, long *eline)
269 ret = NCONF_load_bio(conf, btmp, eline);
275 int NCONF_load_bio(CONF *conf, BIO *bp, long *eline)
277 if (conf == NULL) {
282 return conf->meth->load_bio(conf, bp, eline);
285 STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section)
287 if (conf == NULL) {
297 return _CONF_get_section_values(conf, section);
300 char *NCONF_get_string(const CONF *conf, const char *group, const char *name)
302 char *s = _CONF_get_string(conf, group, name);
305 * Since we may get a value from an environment variable even if conf is
311 if (conf == NULL) {
320 static int default_is_number(const CONF *conf, char c)
325 static int default_to_int(const CONF *conf, char c)
330 int NCONF_get_number_e(const CONF *conf, const char *group, const char *name,
343 str = NCONF_get_string(conf, group, name);
348 if (conf != NULL) {
349 if (conf->meth->is_number != NULL)
350 is_number = conf->meth->is_number;
351 if (conf->meth->to_int != NULL)
352 to_int = conf->meth->to_int;
354 for (res = 0; is_number(conf, *str); str++) {
355 const int d = to_int(conf, *str);
368 long _CONF_get_number(const CONF *conf, const char *section,
375 status = NCONF_get_number_e(conf, section, name, &result);
381 int NCONF_dump_fp(const CONF *conf, FILE *out)
389 ret = NCONF_dump_bio(conf, btmp);
395 int NCONF_dump_bio(const CONF *conf, BIO *out)
397 if (conf == NULL) {
402 return conf->meth->dump(conf, out);