OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
ts_conf.c File Reference
#include <string.h>
#include <openssl/crypto.h>
#include "cryptlib.h"
#include <openssl/pem.h>
#include <openssl/engine.h>
#include <openssl/ts.h>

Go to the source code of this file.

Macros

#define BASE_SECTION   "tsa"
 
#define ENV_DEFAULT_TSA   "default_tsa"
 
#define ENV_SERIAL   "serial"
 
#define ENV_CRYPTO_DEVICE   "crypto_device"
 
#define ENV_SIGNER_CERT   "signer_cert"
 
#define ENV_CERTS   "certs"
 
#define ENV_SIGNER_KEY   "signer_key"
 
#define ENV_DEFAULT_POLICY   "default_policy"
 
#define ENV_OTHER_POLICIES   "other_policies"
 
#define ENV_DIGESTS   "digests"
 
#define ENV_ACCURACY   "accuracy"
 
#define ENV_ORDERING   "ordering"
 
#define ENV_TSA_NAME   "tsa_name"
 
#define ENV_ESS_CERT_ID_CHAIN   "ess_cert_id_chain"
 
#define ENV_VALUE_SECS   "secs"
 
#define ENV_VALUE_MILLISECS   "millisecs"
 
#define ENV_VALUE_MICROSECS   "microsecs"
 
#define ENV_CLOCK_PRECISION_DIGITS   "clock_precision_digits"
 
#define ENV_VALUE_YES   "yes"
 
#define ENV_VALUE_NO   "no"
 

Functions

X509TS_CONF_load_cert (const char *file)
 
 STACK_OF (X509)
 
EVP_PKEYTS_CONF_load_key (const char *file, const char *pass)
 
const char * TS_CONF_get_tsa_section (CONF *conf, const char *section)
 
int TS_CONF_set_serial (CONF *conf, const char *section, TS_serial_cb cb, TS_RESP_CTX *ctx)
 
int TS_CONF_set_crypto_device (CONF *conf, const char *section, const char *device)
 
int TS_CONF_set_default_engine (const char *name)
 
int TS_CONF_set_signer_cert (CONF *conf, const char *section, const char *cert, TS_RESP_CTX *ctx)
 
int TS_CONF_set_certs (CONF *conf, const char *section, const char *certs, TS_RESP_CTX *ctx)
 
int TS_CONF_set_signer_key (CONF *conf, const char *section, const char *key, const char *pass, TS_RESP_CTX *ctx)
 
int TS_CONF_set_def_policy (CONF *conf, const char *section, const char *policy, TS_RESP_CTX *ctx)
 
int TS_CONF_set_policies (CONF *conf, const char *section, TS_RESP_CTX *ctx)
 
int TS_CONF_set_digests (CONF *conf, const char *section, TS_RESP_CTX *ctx)
 
int TS_CONF_set_accuracy (CONF *conf, const char *section, TS_RESP_CTX *ctx)
 
int TS_CONF_set_clock_precision_digits (CONF *conf, const char *section, TS_RESP_CTX *ctx)
 
int TS_CONF_set_ordering (CONF *conf, const char *section, TS_RESP_CTX *ctx)
 
int TS_CONF_set_tsa_name (CONF *conf, const char *section, TS_RESP_CTX *ctx)
 
int TS_CONF_set_ess_cert_id_chain (CONF *conf, const char *section, TS_RESP_CTX *ctx)
 

Macro Definition Documentation

#define BASE_SECTION   "tsa"

Definition at line 71 of file ts_conf.c.

#define ENV_ACCURACY   "accuracy"

Definition at line 81 of file ts_conf.c.

#define ENV_CERTS   "certs"

Definition at line 76 of file ts_conf.c.

#define ENV_CLOCK_PRECISION_DIGITS   "clock_precision_digits"

Definition at line 88 of file ts_conf.c.

#define ENV_CRYPTO_DEVICE   "crypto_device"

Definition at line 74 of file ts_conf.c.

#define ENV_DEFAULT_POLICY   "default_policy"

Definition at line 78 of file ts_conf.c.

#define ENV_DEFAULT_TSA   "default_tsa"

Definition at line 72 of file ts_conf.c.

#define ENV_DIGESTS   "digests"

Definition at line 80 of file ts_conf.c.

#define ENV_ESS_CERT_ID_CHAIN   "ess_cert_id_chain"

Definition at line 84 of file ts_conf.c.

#define ENV_ORDERING   "ordering"

Definition at line 82 of file ts_conf.c.

#define ENV_OTHER_POLICIES   "other_policies"

Definition at line 79 of file ts_conf.c.

#define ENV_SERIAL   "serial"

Definition at line 73 of file ts_conf.c.

#define ENV_SIGNER_CERT   "signer_cert"

Definition at line 75 of file ts_conf.c.

#define ENV_SIGNER_KEY   "signer_key"

Definition at line 77 of file ts_conf.c.

#define ENV_TSA_NAME   "tsa_name"

Definition at line 83 of file ts_conf.c.

#define ENV_VALUE_MICROSECS   "microsecs"

Definition at line 87 of file ts_conf.c.

#define ENV_VALUE_MILLISECS   "millisecs"

Definition at line 86 of file ts_conf.c.

#define ENV_VALUE_NO   "no"

Definition at line 90 of file ts_conf.c.

#define ENV_VALUE_SECS   "secs"

Definition at line 85 of file ts_conf.c.

#define ENV_VALUE_YES   "yes"

Definition at line 89 of file ts_conf.c.

Function Documentation

STACK_OF ( X509  )

Definition at line 108 of file ts_conf.c.

const char* TS_CONF_get_tsa_section ( CONF conf,
const char *  section 
)

Definition at line 162 of file ts_conf.c.

X509* TS_CONF_load_cert ( const char *  file)

Definition at line 94 of file ts_conf.c.

EVP_PKEY* TS_CONF_load_key ( const char *  file,
const char *  pass 
)

Definition at line 136 of file ts_conf.c.

int TS_CONF_set_accuracy ( CONF conf,
const char *  section,
TS_RESP_CTX ctx 
)

Definition at line 406 of file ts_conf.c.

int TS_CONF_set_certs ( CONF conf,
const char *  section,
const char *  certs,
TS_RESP_CTX ctx 
)

Definition at line 262 of file ts_conf.c.

int TS_CONF_set_clock_precision_digits ( CONF conf,
const char *  section,
TS_RESP_CTX ctx 
)

Definition at line 449 of file ts_conf.c.

int TS_CONF_set_crypto_device ( CONF conf,
const char *  section,
const char *  device 
)

Definition at line 192 of file ts_conf.c.

int TS_CONF_set_def_policy ( CONF conf,
const char *  section,
const char *  policy,
TS_RESP_CTX ctx 
)

Definition at line 302 of file ts_conf.c.

int TS_CONF_set_default_engine ( const char *  name)

Definition at line 211 of file ts_conf.c.

int TS_CONF_set_digests ( CONF conf,
const char *  section,
TS_RESP_CTX ctx 
)

Definition at line 364 of file ts_conf.c.

int TS_CONF_set_ess_cert_id_chain ( CONF conf,
const char *  section,
TS_RESP_CTX ctx 
)

Definition at line 502 of file ts_conf.c.

int TS_CONF_set_ordering ( CONF conf,
const char *  section,
TS_RESP_CTX ctx 
)

Definition at line 492 of file ts_conf.c.

int TS_CONF_set_policies ( CONF conf,
const char *  section,
TS_RESP_CTX ctx 
)

Definition at line 329 of file ts_conf.c.

int TS_CONF_set_serial ( CONF conf,
const char *  section,
TS_serial_cb  cb,
TS_RESP_CTX ctx 
)

Definition at line 173 of file ts_conf.c.

int TS_CONF_set_signer_cert ( CONF conf,
const char *  section,
const char *  cert,
TS_RESP_CTX ctx 
)

Definition at line 239 of file ts_conf.c.

int TS_CONF_set_signer_key ( CONF conf,
const char *  section,
const char *  key,
const char *  pass,
TS_RESP_CTX ctx 
)

Definition at line 280 of file ts_conf.c.

int TS_CONF_set_tsa_name ( CONF conf,
const char *  section,
TS_RESP_CTX ctx 
)

Definition at line 497 of file ts_conf.c.