Lines Matching refs:conf

63 #include <openssl/conf.h>
73 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash)
78 default_CONF_method->init(conf);
79 conf->data = hash;
93 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,
109 ltmp = CONF_load_bio(conf, in, eline);
116 LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,
125 ltmp = CONF_load_bio(conf, btmp, eline);
131 LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp,
137 CONF_set_nconf(&ctmp, conf);
145 STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf,
148 if (conf == NULL) {
152 CONF_set_nconf(&ctmp, conf);
157 char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group,
160 if (conf == NULL) {
164 CONF_set_nconf(&ctmp, conf);
169 long CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group,
175 if (conf == NULL) {
179 CONF_set_nconf(&ctmp, conf);
190 void CONF_free(LHASH_OF(CONF_VALUE) *conf)
193 CONF_set_nconf(&ctmp, conf);
198 int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out)
207 ret = CONF_dump_bio(conf, btmp);
213 int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out)
216 CONF_set_nconf(&ctmp, conf);
244 void NCONF_free(CONF *conf)
246 if (conf == NULL)
248 conf->meth->destroy(conf);
251 void NCONF_free_data(CONF *conf)
253 if (conf == NULL)
255 conf->meth->destroy_data(conf);
258 int NCONF_load(CONF *conf, const char *file, long *eline)
260 if (conf == NULL) {
265 return conf->meth->load(conf, file, eline);
269 int NCONF_load_fp(CONF *conf, FILE *fp, long *eline)
277 ret = NCONF_load_bio(conf, btmp, eline);
283 int NCONF_load_bio(CONF *conf, BIO *bp, long *eline)
285 if (conf == NULL) {
290 return conf->meth->load_bio(conf, bp, eline);
293 STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section)
295 if (conf == NULL) {
305 return _CONF_get_section_values(conf, section);
308 char *NCONF_get_string(const CONF *conf, const char *group, const char *name)
310 char *s = _CONF_get_string(conf, group, name);
313 * Since we may get a value from an environment variable even if conf is
319 if (conf == NULL) {
329 int NCONF_get_number_e(const CONF *conf, const char *group, const char *name,
339 str = NCONF_get_string(conf, group, name);
344 for (*result = 0; conf->meth->is_number(conf, *str);) {
345 *result = (*result) * 10 + conf->meth->to_int(conf, *str);
353 int NCONF_dump_fp(const CONF *conf, FILE *out)
361 ret = NCONF_dump_bio(conf, btmp);
367 int NCONF_dump_bio(const CONF *conf, BIO *out)
369 if (conf == NULL) {
374 return conf->meth->dump(conf, out);
379 long NCONF_get_number(CONF *conf, char *group, char *name)
384 status = NCONF_get_number_e(conf, group, name, &ret);