Home | History | Annotate | Download | only in conf

Lines Matching refs:CONF

62 #include <openssl/conf.h>
66 const char CONF_version[]="CONF" OPENSSL_VERSION_PTEXT;
70 /* Init a 'CONF' structure from an old LHASH */
72 void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash)
77 default_CONF_method->init(conf);
78 conf->data = hash;
81 /* The following section contains the "CONF classic" functions,
82 rewritten in terms of the new CONF interface. */
90 LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,
107 ltmp = CONF_load_bio(conf, in, eline);
114 LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,
123 ltmp = CONF_load_bio(conf, btmp, eline);
129 LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp,
132 CONF ctmp;
135 CONF_set_nconf(&ctmp, conf);
143 STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf,
146 if (conf == NULL)
152 CONF ctmp;
153 CONF_set_nconf(&ctmp, conf);
158 char *CONF_get_string(LHASH_OF(CONF_VALUE) *conf,const char *group,
161 if (conf == NULL)
167 CONF ctmp;
168 CONF_set_nconf(&ctmp, conf);
173 long CONF_get_number(LHASH_OF(CONF_VALUE) *conf,const char *group,
179 if (conf == NULL)
185 CONF ctmp;
186 CONF_set_nconf(&ctmp, conf);
198 void CONF_free(LHASH_OF(CONF_VALUE) *conf)
200 CONF ctmp;
201 CONF_set_nconf(&ctmp, conf);
206 int CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out)
215 ret = CONF_dump_bio(conf, btmp);
221 int CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out)
223 CONF ctmp;
224 CONF_set_nconf(&ctmp, conf);
228 /* The following section contains the "New CONF" functions. They are
229 completely centralised around a new CONF structure that may contain
232 by the "CONF classic" functions, for consistency. */
234 CONF *NCONF_new(CONF_METHOD *meth)
236 CONF *ret;
251 void NCONF_free(CONF *conf)
253 if (conf == NULL)
255 conf->meth->destroy(conf);
258 void NCONF_free_data(CONF *conf)
260 if (conf == NULL)
262 conf->meth->destroy_data(conf);
265 int NCONF_load(CONF *conf, const char *file, long *eline)
267 if (conf == NULL)
273 return conf->meth->load(conf, file, eline);
277 int NCONF_load_fp(CONF *conf, FILE *fp,long *eline)
286 ret = NCONF_load_bio(conf, btmp, eline);
292 int NCONF_load_bio(CONF *conf, BIO *bp,long *eline)
294 if (conf == NULL)
300 return conf->meth->load_bio(conf, bp, eline);
303 STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf,const char *section)
305 if (conf == NULL)
317 return _CONF_get_section_values(conf, section);
320 char *NCONF_get_string(const CONF *conf,const char *group,const char *name)
322 char *s = _CONF_get_string(conf, group, name);
325 if conf is NULL, let's check the value first */
328 if (conf == NULL)
340 int NCONF_get_number_e(const CONF *conf,const char *group,const char *name,
351 str = NCONF_get_string(conf,group,name);
356 for (*result = 0;conf->meth->is_number(conf, *str);)
358 *result = (*result)*10 + conf->meth->to_int(conf, *str);
366 int NCONF_dump_fp(const CONF *conf, FILE *out)
374 ret = NCONF_dump_bio(conf, btmp);
380 int NCONF_dump_bio(const CONF *conf, BIO *out)
382 if (conf == NULL)
388 return conf->meth->dump(conf, out);
394 long NCONF_get_number(CONF *conf,char *group,char *name)
399 status = NCONF_get_number_e(conf, group, name, &ret);