• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/openssl/crypto/conf/

Lines Matching defs:conf

59 /* Part of the code in here was originally in conf.c, which is now removed */
68 #include <openssl/conf.h>
72 static void value_free_hash(CONF_VALUE *a, LHASH *conf);
73 static void value_free_stack(CONF_VALUE *a,LHASH *conf);
84 CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section)
88 if ((conf == NULL) || (section == NULL)) return(NULL);
91 v=(CONF_VALUE *)lh_retrieve(conf->data,&vv);
96 STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,
101 v=_CONF_get_section(conf,section);
108 int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value)
121 v = (CONF_VALUE *)lh_insert(conf->data, value);
132 char *_CONF_get_string(const CONF *conf, const char *section, const char *name)
138 if (conf != NULL)
144 v=(CONF_VALUE *)lh_retrieve(conf->data,&vv);
154 v=(CONF_VALUE *)lh_retrieve(conf->data,&vv);
167 long _CONF_get_number(CONF *conf, char *section, char *name)
172 str=_CONF_get_string(conf,section,name);
176 if (conf->meth->is_number(conf, *str))
177 ret=ret*10+conf->meth->to_int(conf, *str);
185 int _CONF_new_data(CONF *conf)
187 if (conf == NULL)
191 if (conf->data == NULL)
192 if ((conf->data = lh_new(hash, cmp_conf)) == NULL)
199 void _CONF_free_data(CONF *conf)
201 if (conf == NULL || conf->data == NULL) return;
203 conf->data->down_load=0; /* evil thing to make sure the 'OPENSSL_free()'
205 lh_doall_arg(conf->data, LHASH_DOALL_ARG_FN(value_free_hash),
206 conf->data);
211 lh_doall_arg(conf->data, LHASH_DOALL_ARG_FN(value_free_stack),
212 conf->data);
213 lh_free(conf->data);
216 static void value_free_hash(CONF_VALUE *a, LHASH *conf)
220 a=(CONF_VALUE *)lh_delete(conf,a);
224 static void value_free_stack(CONF_VALUE *a, LHASH *conf)
277 CONF_VALUE *_CONF_new_section(CONF *conf, const char *section)
295 vv=(CONF_VALUE *)lh_insert(conf->data,v);