64 #ifndef OPENSSL_NO_ENGINE
71 #define BASE_SECTION "tsa"
72 #define ENV_DEFAULT_TSA "default_tsa"
73 #define ENV_SERIAL "serial"
74 #define ENV_CRYPTO_DEVICE "crypto_device"
75 #define ENV_SIGNER_CERT "signer_cert"
76 #define ENV_CERTS "certs"
77 #define ENV_SIGNER_KEY "signer_key"
78 #define ENV_DEFAULT_POLICY "default_policy"
79 #define ENV_OTHER_POLICIES "other_policies"
80 #define ENV_DIGESTS "digests"
81 #define ENV_ACCURACY "accuracy"
82 #define ENV_ORDERING "ordering"
83 #define ENV_TSA_NAME "tsa_name"
84 #define ENV_ESS_CERT_ID_CHAIN "ess_cert_id_chain"
85 #define ENV_VALUE_SECS "secs"
86 #define ENV_VALUE_MILLISECS "millisecs"
87 #define ENV_VALUE_MICROSECS "microsecs"
88 #define ENV_CLOCK_PRECISION_DIGITS "clock_precision_digits"
89 #define ENV_VALUE_YES "yes"
90 #define ENV_VALUE_NO "no"
100 x = PEM_read_bio_X509_AUX(cert, NULL, NULL, NULL);
103 fprintf(stderr,
"unable to load certificate: %s\n", file);
118 allcerts = PEM_X509_INFO_read_bio(certs, NULL, NULL, NULL);
129 if (othercerts == NULL)
130 fprintf(stderr,
"unable to load certificates: %s\n", file);
145 fprintf(stderr,
"unable to load private key: %s\n", file);
152 static void TS_CONF_lookup_fail(
const char *name,
const char *tag)
154 fprintf(stderr,
"variable lookup failed for %s::%s\n", name, tag);
157 static void TS_CONF_invalid(
const char *name,
const char *tag)
159 fprintf(stderr,
"invalid variable value for %s::%s\n", name, tag);
190 #ifndef OPENSSL_NO_ENGINE
217 if (strcmp(name,
"builtin") == 0)
return 1;
221 if (strcmp(name,
"chil") == 0)
243 X509 *cert_obj = NULL;
270 if (!certs)
goto end;
271 if (!(certs_obj = TS_CONF_load_certs(certs)))
goto err;
281 const char *
key,
const char *
pass,
338 if (policies && !(list = X509V3_parse_list(policies)))
376 if (!(list = X509V3_parse_list(digests)))
410 int secs = 0, millis = 0, micros = 0;
414 if (accuracy && !(list = X509V3_parse_list(accuracy)))
473 static int TS_CONF_add_flag(
CONF *conf,
const char *section,
const char *field,
484 TS_CONF_invalid(section, field);