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