Lines Matching refs:section
123 const char *TS_CONF_get_tsa_section(CONF *conf, const char *section) in TS_CONF_get_tsa_section() argument
125 if (!section) { in TS_CONF_get_tsa_section()
126 section = NCONF_get_string(conf, BASE_SECTION, ENV_DEFAULT_TSA); in TS_CONF_get_tsa_section()
127 if (!section) in TS_CONF_get_tsa_section()
130 return section; in TS_CONF_get_tsa_section()
133 int TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb, in TS_CONF_set_serial() argument
137 char *serial = NCONF_get_string(conf, section, ENV_SERIAL); in TS_CONF_set_serial()
139 ts_CONF_lookup_fail(section, ENV_SERIAL); in TS_CONF_set_serial()
151 int TS_CONF_set_crypto_device(CONF *conf, const char *section, in TS_CONF_set_crypto_device() argument
157 device = NCONF_get_string(conf, section, ENV_CRYPTO_DEVICE); in TS_CONF_set_crypto_device()
160 ts_CONF_invalid(section, ENV_CRYPTO_DEVICE); in TS_CONF_set_crypto_device()
194 int TS_CONF_set_signer_cert(CONF *conf, const char *section, in TS_CONF_set_signer_cert() argument
201 cert = NCONF_get_string(conf, section, ENV_SIGNER_CERT); in TS_CONF_set_signer_cert()
203 ts_CONF_lookup_fail(section, ENV_SIGNER_CERT); in TS_CONF_set_signer_cert()
218 int TS_CONF_set_certs(CONF *conf, const char *section, const char *certs, in TS_CONF_set_certs() argument
226 if ((certs = NCONF_get_string(conf, section, ENV_CERTS)) == NULL) in TS_CONF_set_certs()
240 int TS_CONF_set_signer_key(CONF *conf, const char *section, in TS_CONF_set_signer_key() argument
247 key = NCONF_get_string(conf, section, ENV_SIGNER_KEY); in TS_CONF_set_signer_key()
249 ts_CONF_lookup_fail(section, ENV_SIGNER_KEY); in TS_CONF_set_signer_key()
263 int TS_CONF_set_signer_digest(CONF *conf, const char *section, in TS_CONF_set_signer_digest() argument
269 md = NCONF_get_string(conf, section, ENV_SIGNER_DIGEST); in TS_CONF_set_signer_digest()
271 ts_CONF_lookup_fail(section, ENV_SIGNER_DIGEST); in TS_CONF_set_signer_digest()
276 ts_CONF_invalid(section, ENV_SIGNER_DIGEST); in TS_CONF_set_signer_digest()
287 int TS_CONF_set_def_policy(CONF *conf, const char *section, in TS_CONF_set_def_policy() argument
294 policy = NCONF_get_string(conf, section, ENV_DEFAULT_POLICY); in TS_CONF_set_def_policy()
296 ts_CONF_lookup_fail(section, ENV_DEFAULT_POLICY); in TS_CONF_set_def_policy()
300 ts_CONF_invalid(section, ENV_DEFAULT_POLICY); in TS_CONF_set_def_policy()
312 int TS_CONF_set_policies(CONF *conf, const char *section, TS_RESP_CTX *ctx) in TS_CONF_set_policies() argument
317 char *policies = NCONF_get_string(conf, section, ENV_OTHER_POLICIES); in TS_CONF_set_policies()
321 ts_CONF_invalid(section, ENV_OTHER_POLICIES); in TS_CONF_set_policies()
330 ts_CONF_invalid(section, ENV_OTHER_POLICIES); in TS_CONF_set_policies()
344 int TS_CONF_set_digests(CONF *conf, const char *section, TS_RESP_CTX *ctx) in TS_CONF_set_digests() argument
349 char *digests = NCONF_get_string(conf, section, ENV_DIGESTS); in TS_CONF_set_digests()
352 ts_CONF_lookup_fail(section, ENV_DIGESTS); in TS_CONF_set_digests()
356 ts_CONF_invalid(section, ENV_DIGESTS); in TS_CONF_set_digests()
360 ts_CONF_invalid(section, ENV_DIGESTS); in TS_CONF_set_digests()
369 ts_CONF_invalid(section, ENV_DIGESTS); in TS_CONF_set_digests()
382 int TS_CONF_set_accuracy(CONF *conf, const char *section, TS_RESP_CTX *ctx) in TS_CONF_set_accuracy() argument
388 char *accuracy = NCONF_get_string(conf, section, ENV_ACCURACY); in TS_CONF_set_accuracy()
391 ts_CONF_invalid(section, ENV_ACCURACY); in TS_CONF_set_accuracy()
406 ts_CONF_invalid(section, ENV_ACCURACY); in TS_CONF_set_accuracy()
419 int TS_CONF_set_clock_precision_digits(const CONF *conf, const char *section, in TS_CONF_set_clock_precision_digits() argument
428 digits = _CONF_get_number(conf, section, ENV_CLOCK_PRECISION_DIGITS); in TS_CONF_set_clock_precision_digits()
430 ts_CONF_invalid(section, ENV_CLOCK_PRECISION_DIGITS); in TS_CONF_set_clock_precision_digits()
442 static int ts_CONF_add_flag(CONF *conf, const char *section, in ts_CONF_add_flag() argument
445 const char *value = NCONF_get_string(conf, section, field); in ts_CONF_add_flag()
451 ts_CONF_invalid(section, field); in ts_CONF_add_flag()
459 int TS_CONF_set_ordering(CONF *conf, const char *section, TS_RESP_CTX *ctx) in TS_CONF_set_ordering() argument
461 return ts_CONF_add_flag(conf, section, ENV_ORDERING, TS_ORDERING, ctx); in TS_CONF_set_ordering()
464 int TS_CONF_set_tsa_name(CONF *conf, const char *section, TS_RESP_CTX *ctx) in TS_CONF_set_tsa_name() argument
466 return ts_CONF_add_flag(conf, section, ENV_TSA_NAME, TS_TSA_NAME, ctx); in TS_CONF_set_tsa_name()
469 int TS_CONF_set_ess_cert_id_chain(CONF *conf, const char *section, in TS_CONF_set_ess_cert_id_chain() argument
472 return ts_CONF_add_flag(conf, section, ENV_ESS_CERT_ID_CHAIN, in TS_CONF_set_ess_cert_id_chain()
476 int TS_CONF_set_ess_cert_id_digest(CONF *conf, const char *section, in TS_CONF_set_ess_cert_id_digest() argument
481 const char *md = NCONF_get_string(conf, section, ENV_ESS_CERT_ID_ALG); in TS_CONF_set_ess_cert_id_digest()
488 ts_CONF_invalid(section, ENV_ESS_CERT_ID_ALG); in TS_CONF_set_ess_cert_id_digest()