• Home
  • Raw
  • Download

Lines Matching refs:conf

100   CONF *conf;  in NCONF_new()  local
106 conf = OPENSSL_malloc(sizeof(CONF)); in NCONF_new()
107 if (conf == NULL) { in NCONF_new()
111 conf->data = lh_CONF_VALUE_new(conf_value_hash, conf_value_cmp); in NCONF_new()
112 if (conf->data == NULL) { in NCONF_new()
113 OPENSSL_free(conf); in NCONF_new()
117 return conf; in NCONF_new()
151 void NCONF_free(CONF *conf) { in NCONF_free() argument
152 if (conf == NULL || conf->data == NULL) { in NCONF_free()
156 lh_CONF_VALUE_doall(conf->data, value_free); in NCONF_free()
157 lh_CONF_VALUE_free(conf->data); in NCONF_free()
158 OPENSSL_free(conf); in NCONF_free()
161 static CONF_VALUE *NCONF_new_section(const CONF *conf, const char *section) { in NCONF_new_section() argument
179 if (!lh_CONF_VALUE_insert(conf->data, &old_value, v)) { in NCONF_new_section()
200 static int str_copy(CONF *conf, char *section, char **pto, char *from) { in str_copy() argument
217 if (IS_QUOTE(conf, *from)) { in str_copy()
220 while (!IS_EOF(conf, *from) && (*from != q)) { in str_copy()
221 if (IS_ESC(conf, *from)) { in str_copy()
223 if (IS_EOF(conf, *from)) { in str_copy()
232 } else if (IS_DQUOTE(conf, *from)) { in str_copy()
235 while (!IS_EOF(conf, *from)) { in str_copy()
248 } else if (IS_ESC(conf, *from)) { in str_copy()
251 if (IS_EOF(conf, v)) { in str_copy()
263 } else if (IS_EOF(conf, *from)) { in str_copy()
282 while (IS_ALPHA_NUMERIC(conf, *e)) { in str_copy()
292 while (IS_ALPHA_NUMERIC(conf, *e)) { in str_copy()
314 p = NCONF_get_string(conf, cp, np); in str_copy()
366 static CONF_VALUE *get_section(const CONF *conf, const char *section) { in get_section() argument
371 return lh_CONF_VALUE_retrieve(conf->data, &template); in get_section()
374 STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section) { in STACK_OF()
375 CONF_VALUE *section_value = get_section(conf, section); in STACK_OF()
382 const char *NCONF_get_string(const CONF *conf, const char *section, in NCONF_get_string() argument
389 value = lh_CONF_VALUE_retrieve(conf->data, &template); in NCONF_get_string()
396 static int add_string(const CONF *conf, CONF_VALUE *section, in add_string() argument
406 if (!lh_CONF_VALUE_insert(conf->data, &old_value, value)) { in add_string()
417 static char *eat_ws(CONF *conf, char *p) { in eat_ws() argument
418 while (IS_WS(conf, *p) && !IS_EOF(conf, *p)) { in eat_ws()
424 #define scan_esc(conf, p) (((IS_EOF((conf), (p)[1])) ? ((p) + 1) : ((p) + 2))) argument
426 static char *eat_alpha_numeric(CONF *conf, char *p) { in eat_alpha_numeric() argument
428 if (IS_ESC(conf, *p)) { in eat_alpha_numeric()
429 p = scan_esc(conf, p); in eat_alpha_numeric()
432 if (!IS_ALPHA_NUMERIC_PUNCT(conf, *p)) { in eat_alpha_numeric()
439 static char *scan_quote(CONF *conf, char *p) { in scan_quote() argument
443 while (!IS_EOF(conf, *p) && *p != q) { in scan_quote()
444 if (IS_ESC(conf, *p)) { in scan_quote()
446 if (IS_EOF(conf, *p)) { in scan_quote()
459 static char *scan_dquote(CONF *conf, char *p) { in scan_dquote() argument
463 while (!(IS_EOF(conf, *p))) { in scan_dquote()
479 static void clear_comments(CONF *conf, char *p) { in clear_comments() argument
481 if (IS_FCOMMENT(conf, *p)) { in clear_comments()
485 if (!IS_WS(conf, *p)) { in clear_comments()
492 if (IS_COMMENT(conf, *p)) { in clear_comments()
496 if (IS_DQUOTE(conf, *p)) { in clear_comments()
497 p = scan_dquote(conf, p); in clear_comments()
500 if (IS_QUOTE(conf, *p)) { in clear_comments()
501 p = scan_quote(conf, p); in clear_comments()
504 if (IS_ESC(conf, *p)) { in clear_comments()
505 p = scan_esc(conf, p); in clear_comments()
508 if (IS_EOF(conf, *p)) { in clear_comments()
516 static int def_load_bio(CONF *conf, BIO *in, long *out_error_line) { in def_load_bio() argument
540 sv = NCONF_new_section(conf, section); in def_load_bio()
589 if (IS_ESC(conf, p[0]) && ((bufnum <= 1) || !IS_ESC(conf, p[-1]))) { in def_load_bio()
600 clear_comments(conf, buf); in def_load_bio()
601 s = eat_ws(conf, buf); in def_load_bio()
602 if (IS_EOF(conf, *s)) { in def_load_bio()
609 start = eat_ws(conf, s); in def_load_bio()
612 end = eat_alpha_numeric(conf, ss); in def_load_bio()
613 p = eat_ws(conf, end); in def_load_bio()
623 if (!str_copy(conf, NULL, &section, start)) { in def_load_bio()
626 if ((sv = get_section(conf, section)) == NULL) { in def_load_bio()
627 sv = NCONF_new_section(conf, section); in def_load_bio()
637 end = eat_alpha_numeric(conf, s); in def_load_bio()
643 end = eat_alpha_numeric(conf, end); in def_load_bio()
645 p = eat_ws(conf, end); in def_load_bio()
652 start = eat_ws(conf, p); in def_load_bio()
653 while (!IS_EOF(conf, *p)) { in def_load_bio()
657 while ((p != start) && (IS_WS(conf, *p))) { in def_load_bio()
674 if (!str_copy(conf, psection, &(v->value), start)) { in def_load_bio()
679 if ((tv = get_section(conf, psection)) == NULL) { in def_load_bio()
680 tv = NCONF_new_section(conf, psection); in def_load_bio()
689 if (add_string(conf, tv, v) == 0) { in def_load_bio()
731 int NCONF_load(CONF *conf, const char *filename, long *out_error_line) { in NCONF_load() argument
740 ret = def_load_bio(conf, in, out_error_line); in NCONF_load()
746 int NCONF_load_bio(CONF *conf, BIO *bio, long *out_error_line) { in NCONF_load_bio() argument
747 return def_load_bio(conf, bio, out_error_line); in NCONF_load_bio()