OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
ts.h File Reference
#include <openssl/opensslconf.h>
#include <openssl/symhacks.h>
#include <openssl/buffer.h>
#include <openssl/evp.h>
#include <openssl/bio.h>
#include <openssl/stack.h>
#include <openssl/asn1.h>
#include <openssl/safestack.h>
#include <openssl/rsa.h>
#include <openssl/dsa.h>
#include <openssl/dh.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>

Go to the source code of this file.

Classes

struct  TS_msg_imprint_st
 
struct  TS_req_st
 
struct  TS_accuracy_st
 
struct  TS_tst_info_st
 
struct  TS_status_info_st
 
struct  TS_resp_st
 
struct  ESS_issuer_serial
 
struct  ESS_cert_id
 
struct  ESS_signing_cert
 
struct  TS_resp_ctx
 
struct  TS_verify_ctx
 

Macros

#define TS_STATUS_GRANTED   0
 
#define TS_STATUS_GRANTED_WITH_MODS   1
 
#define TS_STATUS_REJECTION   2
 
#define TS_STATUS_WAITING   3
 
#define TS_STATUS_REVOCATION_WARNING   4
 
#define TS_STATUS_REVOCATION_NOTIFICATION   5
 
#define TS_INFO_BAD_ALG   0
 
#define TS_INFO_BAD_REQUEST   2
 
#define TS_INFO_BAD_DATA_FORMAT   5
 
#define TS_INFO_TIME_NOT_AVAILABLE   14
 
#define TS_INFO_UNACCEPTED_POLICY   15
 
#define TS_INFO_UNACCEPTED_EXTENSION   16
 
#define TS_INFO_ADD_INFO_NOT_AVAILABLE   17
 
#define TS_INFO_SYSTEM_FAILURE   25
 
#define TS_TSA_NAME   0x01
 
#define TS_ORDERING   0x02
 
#define TS_ESS_CERT_ID_CHAIN   0x04
 
#define TS_MAX_CLOCK_PRECISION_DIGITS   6
 
#define TS_VFY_SIGNATURE   (1u << 0)
 
#define TS_VFY_VERSION   (1u << 1)
 
#define TS_VFY_POLICY   (1u << 2)
 
#define TS_VFY_IMPRINT   (1u << 3)
 
#define TS_VFY_DATA   (1u << 4)
 
#define TS_VFY_NONCE   (1u << 5)
 
#define TS_VFY_SIGNER   (1u << 6)
 
#define TS_VFY_TSA_NAME   (1u << 7)
 
#define TS_VFY_ALL_IMPRINT
 
#define TS_VFY_ALL_DATA
 
#define TS_F_D2I_TS_RESP   147
 
#define TS_F_DEF_SERIAL_CB   110
 
#define TS_F_DEF_TIME_CB   111
 
#define TS_F_ESS_ADD_SIGNING_CERT   112
 
#define TS_F_ESS_CERT_ID_NEW_INIT   113
 
#define TS_F_ESS_SIGNING_CERT_NEW_INIT   114
 
#define TS_F_INT_TS_RESP_VERIFY_TOKEN   149
 
#define TS_F_PKCS7_TO_TS_TST_INFO   148
 
#define TS_F_TS_ACCURACY_SET_MICROS   115
 
#define TS_F_TS_ACCURACY_SET_MILLIS   116
 
#define TS_F_TS_ACCURACY_SET_SECONDS   117
 
#define TS_F_TS_CHECK_IMPRINTS   100
 
#define TS_F_TS_CHECK_NONCES   101
 
#define TS_F_TS_CHECK_POLICY   102
 
#define TS_F_TS_CHECK_SIGNING_CERTS   103
 
#define TS_F_TS_CHECK_STATUS_INFO   104
 
#define TS_F_TS_COMPUTE_IMPRINT   145
 
#define TS_F_TS_CONF_SET_DEFAULT_ENGINE   146
 
#define TS_F_TS_GET_STATUS_TEXT   105
 
#define TS_F_TS_MSG_IMPRINT_SET_ALGO   118
 
#define TS_F_TS_REQ_SET_MSG_IMPRINT   119
 
#define TS_F_TS_REQ_SET_NONCE   120
 
#define TS_F_TS_REQ_SET_POLICY_ID   121
 
#define TS_F_TS_RESP_CREATE_RESPONSE   122
 
#define TS_F_TS_RESP_CREATE_TST_INFO   123
 
#define TS_F_TS_RESP_CTX_ADD_FAILURE_INFO   124
 
#define TS_F_TS_RESP_CTX_ADD_MD   125
 
#define TS_F_TS_RESP_CTX_ADD_POLICY   126
 
#define TS_F_TS_RESP_CTX_NEW   127
 
#define TS_F_TS_RESP_CTX_SET_ACCURACY   128
 
#define TS_F_TS_RESP_CTX_SET_CERTS   129
 
#define TS_F_TS_RESP_CTX_SET_DEF_POLICY   130
 
#define TS_F_TS_RESP_CTX_SET_SIGNER_CERT   131
 
#define TS_F_TS_RESP_CTX_SET_STATUS_INFO   132
 
#define TS_F_TS_RESP_GET_POLICY   133
 
#define TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION   134
 
#define TS_F_TS_RESP_SET_STATUS_INFO   135
 
#define TS_F_TS_RESP_SET_TST_INFO   150
 
#define TS_F_TS_RESP_SIGN   136
 
#define TS_F_TS_RESP_VERIFY_SIGNATURE   106
 
#define TS_F_TS_RESP_VERIFY_TOKEN   107
 
#define TS_F_TS_TST_INFO_SET_ACCURACY   137
 
#define TS_F_TS_TST_INFO_SET_MSG_IMPRINT   138
 
#define TS_F_TS_TST_INFO_SET_NONCE   139
 
#define TS_F_TS_TST_INFO_SET_POLICY_ID   140
 
#define TS_F_TS_TST_INFO_SET_SERIAL   141
 
#define TS_F_TS_TST_INFO_SET_TIME   142
 
#define TS_F_TS_TST_INFO_SET_TSA   143
 
#define TS_F_TS_VERIFY   108
 
#define TS_F_TS_VERIFY_CERT   109
 
#define TS_F_TS_VERIFY_CTX_NEW   144
 
#define TS_R_BAD_PKCS7_TYPE   132
 
#define TS_R_BAD_TYPE   133
 
#define TS_R_CERTIFICATE_VERIFY_ERROR   100
 
#define TS_R_COULD_NOT_SET_ENGINE   127
 
#define TS_R_COULD_NOT_SET_TIME   115
 
#define TS_R_D2I_TS_RESP_INT_FAILED   128
 
#define TS_R_DETACHED_CONTENT   134
 
#define TS_R_ESS_ADD_SIGNING_CERT_ERROR   116
 
#define TS_R_ESS_SIGNING_CERTIFICATE_ERROR   101
 
#define TS_R_INVALID_NULL_POINTER   102
 
#define TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE   117
 
#define TS_R_MESSAGE_IMPRINT_MISMATCH   103
 
#define TS_R_NONCE_MISMATCH   104
 
#define TS_R_NONCE_NOT_RETURNED   105
 
#define TS_R_NO_CONTENT   106
 
#define TS_R_NO_TIME_STAMP_TOKEN   107
 
#define TS_R_PKCS7_ADD_SIGNATURE_ERROR   118
 
#define TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR   119
 
#define TS_R_PKCS7_TO_TS_TST_INFO_FAILED   129
 
#define TS_R_POLICY_MISMATCH   108
 
#define TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   120
 
#define TS_R_RESPONSE_SETUP_ERROR   121
 
#define TS_R_SIGNATURE_FAILURE   109
 
#define TS_R_THERE_MUST_BE_ONE_SIGNER   110
 
#define TS_R_TIME_SYSCALL_ERROR   122
 
#define TS_R_TOKEN_NOT_PRESENT   130
 
#define TS_R_TOKEN_PRESENT   131
 
#define TS_R_TSA_NAME_MISMATCH   111
 
#define TS_R_TSA_UNTRUSTED   112
 
#define TS_R_TST_INFO_SETUP_ERROR   123
 
#define TS_R_TS_DATASIGN   124
 
#define TS_R_UNACCEPTABLE_POLICY   125
 
#define TS_R_UNSUPPORTED_MD_ALGORITHM   126
 
#define TS_R_UNSUPPORTED_VERSION   113
 
#define TS_R_WRONG_CONTENT_TYPE   114
 

Typedefs

typedef struct TS_msg_imprint_st TS_MSG_IMPRINT
 
typedef struct TS_req_st TS_REQ
 
typedef struct TS_accuracy_st TS_ACCURACY
 
typedef struct TS_tst_info_st TS_TST_INFO
 
typedef struct TS_status_info_st TS_STATUS_INFO
 
typedef struct TS_resp_st TS_RESP
 
typedef struct ESS_issuer_serial ESS_ISSUER_SERIAL
 
typedef struct ESS_cert_id ESS_CERT_ID
 
typedef struct ESS_signing_cert ESS_SIGNING_CERT
 
typedef ASN1_INTEGER *(* TS_serial_cb )(struct TS_resp_ctx *, void *)
 
typedef int(* TS_time_cb )(struct TS_resp_ctx *, void *, long *sec, long *usec)
 
typedef int(* TS_extension_cb )(struct TS_resp_ctx *, X509_EXTENSION *, void *)
 
typedef struct TS_resp_ctx TS_RESP_CTX
 
typedef struct TS_verify_ctx TS_VERIFY_CTX
 

Functions

TS_REQTS_REQ_new (void)
 
void TS_REQ_free (TS_REQ *a)
 
int i2d_TS_REQ (const TS_REQ *a, unsigned char **pp)
 
TS_REQd2i_TS_REQ (TS_REQ **a, const unsigned char **pp, long length)
 
TS_REQTS_REQ_dup (TS_REQ *a)
 
TS_REQd2i_TS_REQ_fp (FILE *fp, TS_REQ **a)
 
int i2d_TS_REQ_fp (FILE *fp, TS_REQ *a)
 
TS_REQd2i_TS_REQ_bio (BIO *fp, TS_REQ **a)
 
int i2d_TS_REQ_bio (BIO *fp, TS_REQ *a)
 
TS_MSG_IMPRINTTS_MSG_IMPRINT_new (void)
 
void TS_MSG_IMPRINT_free (TS_MSG_IMPRINT *a)
 
int i2d_TS_MSG_IMPRINT (const TS_MSG_IMPRINT *a, unsigned char **pp)
 
TS_MSG_IMPRINTd2i_TS_MSG_IMPRINT (TS_MSG_IMPRINT **a, const unsigned char **pp, long length)
 
TS_MSG_IMPRINTTS_MSG_IMPRINT_dup (TS_MSG_IMPRINT *a)
 
TS_MSG_IMPRINTd2i_TS_MSG_IMPRINT_fp (FILE *fp, TS_MSG_IMPRINT **a)
 
int i2d_TS_MSG_IMPRINT_fp (FILE *fp, TS_MSG_IMPRINT *a)
 
TS_MSG_IMPRINTd2i_TS_MSG_IMPRINT_bio (BIO *fp, TS_MSG_IMPRINT **a)
 
int i2d_TS_MSG_IMPRINT_bio (BIO *fp, TS_MSG_IMPRINT *a)
 
TS_RESPTS_RESP_new (void)
 
void TS_RESP_free (TS_RESP *a)
 
int i2d_TS_RESP (const TS_RESP *a, unsigned char **pp)
 
TS_RESPd2i_TS_RESP (TS_RESP **a, const unsigned char **pp, long length)
 
TS_TST_INFOPKCS7_to_TS_TST_INFO (PKCS7 *token)
 
TS_RESPTS_RESP_dup (TS_RESP *a)
 
TS_RESPd2i_TS_RESP_fp (FILE *fp, TS_RESP **a)
 
int i2d_TS_RESP_fp (FILE *fp, TS_RESP *a)
 
TS_RESPd2i_TS_RESP_bio (BIO *fp, TS_RESP **a)
 
int i2d_TS_RESP_bio (BIO *fp, TS_RESP *a)
 
TS_STATUS_INFOTS_STATUS_INFO_new (void)
 
void TS_STATUS_INFO_free (TS_STATUS_INFO *a)
 
int i2d_TS_STATUS_INFO (const TS_STATUS_INFO *a, unsigned char **pp)
 
TS_STATUS_INFOd2i_TS_STATUS_INFO (TS_STATUS_INFO **a, const unsigned char **pp, long length)
 
TS_STATUS_INFOTS_STATUS_INFO_dup (TS_STATUS_INFO *a)
 
TS_TST_INFOTS_TST_INFO_new (void)
 
void TS_TST_INFO_free (TS_TST_INFO *a)
 
int i2d_TS_TST_INFO (const TS_TST_INFO *a, unsigned char **pp)
 
TS_TST_INFOd2i_TS_TST_INFO (TS_TST_INFO **a, const unsigned char **pp, long length)
 
TS_TST_INFOTS_TST_INFO_dup (TS_TST_INFO *a)
 
TS_TST_INFOd2i_TS_TST_INFO_fp (FILE *fp, TS_TST_INFO **a)
 
int i2d_TS_TST_INFO_fp (FILE *fp, TS_TST_INFO *a)
 
TS_TST_INFOd2i_TS_TST_INFO_bio (BIO *fp, TS_TST_INFO **a)
 
int i2d_TS_TST_INFO_bio (BIO *fp, TS_TST_INFO *a)
 
TS_ACCURACYTS_ACCURACY_new (void)
 
void TS_ACCURACY_free (TS_ACCURACY *a)
 
int i2d_TS_ACCURACY (const TS_ACCURACY *a, unsigned char **pp)
 
TS_ACCURACYd2i_TS_ACCURACY (TS_ACCURACY **a, const unsigned char **pp, long length)
 
TS_ACCURACYTS_ACCURACY_dup (TS_ACCURACY *a)
 
ESS_ISSUER_SERIALESS_ISSUER_SERIAL_new (void)
 
void ESS_ISSUER_SERIAL_free (ESS_ISSUER_SERIAL *a)
 
int i2d_ESS_ISSUER_SERIAL (const ESS_ISSUER_SERIAL *a, unsigned char **pp)
 
ESS_ISSUER_SERIALd2i_ESS_ISSUER_SERIAL (ESS_ISSUER_SERIAL **a, const unsigned char **pp, long length)
 
ESS_ISSUER_SERIALESS_ISSUER_SERIAL_dup (ESS_ISSUER_SERIAL *a)
 
ESS_CERT_IDESS_CERT_ID_new (void)
 
void ESS_CERT_ID_free (ESS_CERT_ID *a)
 
int i2d_ESS_CERT_ID (const ESS_CERT_ID *a, unsigned char **pp)
 
ESS_CERT_IDd2i_ESS_CERT_ID (ESS_CERT_ID **a, const unsigned char **pp, long length)
 
ESS_CERT_IDESS_CERT_ID_dup (ESS_CERT_ID *a)
 
ESS_SIGNING_CERTESS_SIGNING_CERT_new (void)
 
void ESS_SIGNING_CERT_free (ESS_SIGNING_CERT *a)
 
int i2d_ESS_SIGNING_CERT (const ESS_SIGNING_CERT *a, unsigned char **pp)
 
ESS_SIGNING_CERTd2i_ESS_SIGNING_CERT (ESS_SIGNING_CERT **a, const unsigned char **pp, long length)
 
ESS_SIGNING_CERTESS_SIGNING_CERT_dup (ESS_SIGNING_CERT *a)
 
void ERR_load_TS_strings (void)
 
int TS_REQ_set_version (TS_REQ *a, long version)
 
long TS_REQ_get_version (const TS_REQ *a)
 
int TS_REQ_set_msg_imprint (TS_REQ *a, TS_MSG_IMPRINT *msg_imprint)
 
TS_MSG_IMPRINTTS_REQ_get_msg_imprint (TS_REQ *a)
 
int TS_MSG_IMPRINT_set_algo (TS_MSG_IMPRINT *a, X509_ALGOR *alg)
 
X509_ALGORTS_MSG_IMPRINT_get_algo (TS_MSG_IMPRINT *a)
 
int TS_MSG_IMPRINT_set_msg (TS_MSG_IMPRINT *a, unsigned char *d, int len)
 
ASN1_OCTET_STRINGTS_MSG_IMPRINT_get_msg (TS_MSG_IMPRINT *a)
 
int TS_REQ_set_policy_id (TS_REQ *a, ASN1_OBJECT *policy)
 
ASN1_OBJECTTS_REQ_get_policy_id (TS_REQ *a)
 
int TS_REQ_set_nonce (TS_REQ *a, const ASN1_INTEGER *nonce)
 
const ASN1_INTEGERTS_REQ_get_nonce (const TS_REQ *a)
 
int TS_REQ_set_cert_req (TS_REQ *a, int cert_req)
 
int TS_REQ_get_cert_req (const TS_REQ *a)
 
 STACK_OF (X509_EXTENSION)*TS_REQ_get_exts(TS_REQ *a)
 
void TS_REQ_ext_free (TS_REQ *a)
 
int TS_REQ_get_ext_count (TS_REQ *a)
 
int TS_REQ_get_ext_by_NID (TS_REQ *a, int nid, int lastpos)
 
int TS_REQ_get_ext_by_OBJ (TS_REQ *a, ASN1_OBJECT *obj, int lastpos)
 
int TS_REQ_get_ext_by_critical (TS_REQ *a, int crit, int lastpos)
 
X509_EXTENSIONTS_REQ_get_ext (TS_REQ *a, int loc)
 
X509_EXTENSIONTS_REQ_delete_ext (TS_REQ *a, int loc)
 
int TS_REQ_add_ext (TS_REQ *a, X509_EXTENSION *ex, int loc)
 
voidTS_REQ_get_ext_d2i (TS_REQ *a, int nid, int *crit, int *idx)
 
int TS_REQ_print_bio (BIO *bio, TS_REQ *a)
 
int TS_RESP_set_status_info (TS_RESP *a, TS_STATUS_INFO *info)
 
TS_STATUS_INFOTS_RESP_get_status_info (TS_RESP *a)
 
void TS_RESP_set_tst_info (TS_RESP *a, PKCS7 *p7, TS_TST_INFO *tst_info)
 
PKCS7TS_RESP_get_token (TS_RESP *a)
 
TS_TST_INFOTS_RESP_get_tst_info (TS_RESP *a)
 
int TS_TST_INFO_set_version (TS_TST_INFO *a, long version)
 
long TS_TST_INFO_get_version (const TS_TST_INFO *a)
 
int TS_TST_INFO_set_policy_id (TS_TST_INFO *a, ASN1_OBJECT *policy_id)
 
ASN1_OBJECTTS_TST_INFO_get_policy_id (TS_TST_INFO *a)
 
int TS_TST_INFO_set_msg_imprint (TS_TST_INFO *a, TS_MSG_IMPRINT *msg_imprint)
 
TS_MSG_IMPRINTTS_TST_INFO_get_msg_imprint (TS_TST_INFO *a)
 
int TS_TST_INFO_set_serial (TS_TST_INFO *a, const ASN1_INTEGER *serial)
 
const ASN1_INTEGERTS_TST_INFO_get_serial (const TS_TST_INFO *a)
 
int TS_TST_INFO_set_time (TS_TST_INFO *a, const ASN1_GENERALIZEDTIME *gtime)
 
const ASN1_GENERALIZEDTIMETS_TST_INFO_get_time (const TS_TST_INFO *a)
 
int TS_TST_INFO_set_accuracy (TS_TST_INFO *a, TS_ACCURACY *accuracy)
 
TS_ACCURACYTS_TST_INFO_get_accuracy (TS_TST_INFO *a)
 
int TS_ACCURACY_set_seconds (TS_ACCURACY *a, const ASN1_INTEGER *seconds)
 
const ASN1_INTEGERTS_ACCURACY_get_seconds (const TS_ACCURACY *a)
 
int TS_ACCURACY_set_millis (TS_ACCURACY *a, const ASN1_INTEGER *millis)
 
const ASN1_INTEGERTS_ACCURACY_get_millis (const TS_ACCURACY *a)
 
int TS_ACCURACY_set_micros (TS_ACCURACY *a, const ASN1_INTEGER *micros)
 
const ASN1_INTEGERTS_ACCURACY_get_micros (const TS_ACCURACY *a)
 
int TS_TST_INFO_set_ordering (TS_TST_INFO *a, int ordering)
 
int TS_TST_INFO_get_ordering (const TS_TST_INFO *a)
 
int TS_TST_INFO_set_nonce (TS_TST_INFO *a, const ASN1_INTEGER *nonce)
 
const ASN1_INTEGERTS_TST_INFO_get_nonce (const TS_TST_INFO *a)
 
int TS_TST_INFO_set_tsa (TS_TST_INFO *a, GENERAL_NAME *tsa)
 
GENERAL_NAMETS_TST_INFO_get_tsa (TS_TST_INFO *a)
 
void TS_TST_INFO_ext_free (TS_TST_INFO *a)
 
int TS_TST_INFO_get_ext_count (TS_TST_INFO *a)
 
int TS_TST_INFO_get_ext_by_NID (TS_TST_INFO *a, int nid, int lastpos)
 
int TS_TST_INFO_get_ext_by_OBJ (TS_TST_INFO *a, ASN1_OBJECT *obj, int lastpos)
 
int TS_TST_INFO_get_ext_by_critical (TS_TST_INFO *a, int crit, int lastpos)
 
X509_EXTENSIONTS_TST_INFO_get_ext (TS_TST_INFO *a, int loc)
 
X509_EXTENSIONTS_TST_INFO_delete_ext (TS_TST_INFO *a, int loc)
 
int TS_TST_INFO_add_ext (TS_TST_INFO *a, X509_EXTENSION *ex, int loc)
 
voidTS_TST_INFO_get_ext_d2i (TS_TST_INFO *a, int nid, int *crit, int *idx)
 
TS_RESP_CTXTS_RESP_CTX_new (void)
 
void TS_RESP_CTX_free (TS_RESP_CTX *ctx)
 
int TS_RESP_CTX_set_signer_cert (TS_RESP_CTX *ctx, X509 *signer)
 
int TS_RESP_CTX_set_signer_key (TS_RESP_CTX *ctx, EVP_PKEY *key)
 
int TS_RESP_CTX_set_def_policy (TS_RESP_CTX *ctx, ASN1_OBJECT *def_policy)
 
int TS_RESP_CTX_set_certs (TS_RESP_CTX *ctx, STACK_OF(X509)*certs)
 
int TS_RESP_CTX_add_policy (TS_RESP_CTX *ctx, ASN1_OBJECT *policy)
 
int TS_RESP_CTX_add_md (TS_RESP_CTX *ctx, const EVP_MD *md)
 
int TS_RESP_CTX_set_accuracy (TS_RESP_CTX *ctx, int secs, int millis, int micros)
 
int TS_RESP_CTX_set_clock_precision_digits (TS_RESP_CTX *ctx, unsigned clock_precision_digits)
 
void TS_RESP_CTX_add_flags (TS_RESP_CTX *ctx, int flags)
 
void TS_RESP_CTX_set_serial_cb (TS_RESP_CTX *ctx, TS_serial_cb cb, void *data)
 
void TS_RESP_CTX_set_time_cb (TS_RESP_CTX *ctx, TS_time_cb cb, void *data)
 
void TS_RESP_CTX_set_extension_cb (TS_RESP_CTX *ctx, TS_extension_cb cb, void *data)
 
int TS_RESP_CTX_set_status_info (TS_RESP_CTX *ctx, int status, const char *text)
 
int TS_RESP_CTX_set_status_info_cond (TS_RESP_CTX *ctx, int status, const char *text)
 
int TS_RESP_CTX_add_failure_info (TS_RESP_CTX *ctx, int failure)
 
TS_REQTS_RESP_CTX_get_request (TS_RESP_CTX *ctx)
 
TS_TST_INFOTS_RESP_CTX_get_tst_info (TS_RESP_CTX *ctx)
 
TS_RESPTS_RESP_create_response (TS_RESP_CTX *ctx, BIO *req_bio)
 
int TS_RESP_verify_signature (PKCS7 *token, STACK_OF(X509)*certs, X509_STORE *store, X509 **signer_out)
 
int TS_RESP_verify_response (TS_VERIFY_CTX *ctx, TS_RESP *response)
 
int TS_RESP_verify_token (TS_VERIFY_CTX *ctx, PKCS7 *token)
 
TS_VERIFY_CTXTS_VERIFY_CTX_new (void)
 
void TS_VERIFY_CTX_init (TS_VERIFY_CTX *ctx)
 
void TS_VERIFY_CTX_free (TS_VERIFY_CTX *ctx)
 
void TS_VERIFY_CTX_cleanup (TS_VERIFY_CTX *ctx)
 
TS_VERIFY_CTXTS_REQ_to_TS_VERIFY_CTX (TS_REQ *req, TS_VERIFY_CTX *ctx)
 
int TS_RESP_print_bio (BIO *bio, TS_RESP *a)
 
int TS_STATUS_INFO_print_bio (BIO *bio, TS_STATUS_INFO *a)
 
int TS_TST_INFO_print_bio (BIO *bio, TS_TST_INFO *a)
 
int TS_ASN1_INTEGER_print_bio (BIO *bio, const ASN1_INTEGER *num)
 
int TS_OBJ_print_bio (BIO *bio, const ASN1_OBJECT *obj)
 
int TS_ext_print_bio (BIO *bio, const STACK_OF(X509_EXTENSION)*extensions)
 
int TS_X509_ALGOR_print_bio (BIO *bio, const X509_ALGOR *alg)
 
int TS_MSG_IMPRINT_print_bio (BIO *bio, TS_MSG_IMPRINT *msg)
 
X509TS_CONF_load_cert (const char *file)
 
 STACK_OF (X509)*TS_CONF_load_certs(const char *file)
 
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 TS_ESS_CERT_ID_CHAIN   0x04

Definition at line 480 of file ts.h.

#define TS_F_D2I_TS_RESP   147

Definition at line 766 of file ts.h.

#define TS_F_DEF_SERIAL_CB   110

Definition at line 767 of file ts.h.

#define TS_F_DEF_TIME_CB   111

Definition at line 768 of file ts.h.

#define TS_F_ESS_ADD_SIGNING_CERT   112

Definition at line 769 of file ts.h.

#define TS_F_ESS_CERT_ID_NEW_INIT   113

Definition at line 770 of file ts.h.

#define TS_F_ESS_SIGNING_CERT_NEW_INIT   114

Definition at line 771 of file ts.h.

#define TS_F_INT_TS_RESP_VERIFY_TOKEN   149

Definition at line 772 of file ts.h.

#define TS_F_PKCS7_TO_TS_TST_INFO   148

Definition at line 773 of file ts.h.

#define TS_F_TS_ACCURACY_SET_MICROS   115

Definition at line 774 of file ts.h.

#define TS_F_TS_ACCURACY_SET_MILLIS   116

Definition at line 775 of file ts.h.

#define TS_F_TS_ACCURACY_SET_SECONDS   117

Definition at line 776 of file ts.h.

#define TS_F_TS_CHECK_IMPRINTS   100

Definition at line 777 of file ts.h.

#define TS_F_TS_CHECK_NONCES   101

Definition at line 778 of file ts.h.

#define TS_F_TS_CHECK_POLICY   102

Definition at line 779 of file ts.h.

#define TS_F_TS_CHECK_SIGNING_CERTS   103

Definition at line 780 of file ts.h.

#define TS_F_TS_CHECK_STATUS_INFO   104

Definition at line 781 of file ts.h.

#define TS_F_TS_COMPUTE_IMPRINT   145

Definition at line 782 of file ts.h.

#define TS_F_TS_CONF_SET_DEFAULT_ENGINE   146

Definition at line 783 of file ts.h.

#define TS_F_TS_GET_STATUS_TEXT   105

Definition at line 784 of file ts.h.

#define TS_F_TS_MSG_IMPRINT_SET_ALGO   118

Definition at line 785 of file ts.h.

#define TS_F_TS_REQ_SET_MSG_IMPRINT   119

Definition at line 786 of file ts.h.

#define TS_F_TS_REQ_SET_NONCE   120

Definition at line 787 of file ts.h.

#define TS_F_TS_REQ_SET_POLICY_ID   121

Definition at line 788 of file ts.h.

#define TS_F_TS_RESP_CREATE_RESPONSE   122

Definition at line 789 of file ts.h.

#define TS_F_TS_RESP_CREATE_TST_INFO   123

Definition at line 790 of file ts.h.

#define TS_F_TS_RESP_CTX_ADD_FAILURE_INFO   124

Definition at line 791 of file ts.h.

#define TS_F_TS_RESP_CTX_ADD_MD   125

Definition at line 792 of file ts.h.

#define TS_F_TS_RESP_CTX_ADD_POLICY   126

Definition at line 793 of file ts.h.

#define TS_F_TS_RESP_CTX_NEW   127

Definition at line 794 of file ts.h.

#define TS_F_TS_RESP_CTX_SET_ACCURACY   128

Definition at line 795 of file ts.h.

#define TS_F_TS_RESP_CTX_SET_CERTS   129

Definition at line 796 of file ts.h.

#define TS_F_TS_RESP_CTX_SET_DEF_POLICY   130

Definition at line 797 of file ts.h.

#define TS_F_TS_RESP_CTX_SET_SIGNER_CERT   131

Definition at line 798 of file ts.h.

#define TS_F_TS_RESP_CTX_SET_STATUS_INFO   132

Definition at line 799 of file ts.h.

#define TS_F_TS_RESP_GET_POLICY   133

Definition at line 800 of file ts.h.

#define TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION   134

Definition at line 801 of file ts.h.

#define TS_F_TS_RESP_SET_STATUS_INFO   135

Definition at line 802 of file ts.h.

#define TS_F_TS_RESP_SET_TST_INFO   150

Definition at line 803 of file ts.h.

#define TS_F_TS_RESP_SIGN   136

Definition at line 804 of file ts.h.

#define TS_F_TS_RESP_VERIFY_SIGNATURE   106

Definition at line 805 of file ts.h.

#define TS_F_TS_RESP_VERIFY_TOKEN   107

Definition at line 806 of file ts.h.

#define TS_F_TS_TST_INFO_SET_ACCURACY   137

Definition at line 807 of file ts.h.

#define TS_F_TS_TST_INFO_SET_MSG_IMPRINT   138

Definition at line 808 of file ts.h.

#define TS_F_TS_TST_INFO_SET_NONCE   139

Definition at line 809 of file ts.h.

#define TS_F_TS_TST_INFO_SET_POLICY_ID   140

Definition at line 810 of file ts.h.

#define TS_F_TS_TST_INFO_SET_SERIAL   141

Definition at line 811 of file ts.h.

#define TS_F_TS_TST_INFO_SET_TIME   142

Definition at line 812 of file ts.h.

#define TS_F_TS_TST_INFO_SET_TSA   143

Definition at line 813 of file ts.h.

#define TS_F_TS_VERIFY   108

Definition at line 814 of file ts.h.

#define TS_F_TS_VERIFY_CERT   109

Definition at line 815 of file ts.h.

#define TS_F_TS_VERIFY_CTX_NEW   144

Definition at line 816 of file ts.h.

#define TS_INFO_ADD_INFO_NOT_AVAILABLE   17

Definition at line 213 of file ts.h.

#define TS_INFO_BAD_ALG   0

Definition at line 207 of file ts.h.

#define TS_INFO_BAD_DATA_FORMAT   5

Definition at line 209 of file ts.h.

#define TS_INFO_BAD_REQUEST   2

Definition at line 208 of file ts.h.

#define TS_INFO_SYSTEM_FAILURE   25

Definition at line 214 of file ts.h.

#define TS_INFO_TIME_NOT_AVAILABLE   14

Definition at line 210 of file ts.h.

#define TS_INFO_UNACCEPTED_EXTENSION   16

Definition at line 212 of file ts.h.

#define TS_INFO_UNACCEPTED_POLICY   15

Definition at line 211 of file ts.h.

#define TS_MAX_CLOCK_PRECISION_DIGITS   6

Definition at line 567 of file ts.h.

#define TS_ORDERING   0x02

Definition at line 473 of file ts.h.

#define TS_R_BAD_PKCS7_TYPE   132

Definition at line 819 of file ts.h.

#define TS_R_BAD_TYPE   133

Definition at line 820 of file ts.h.

#define TS_R_CERTIFICATE_VERIFY_ERROR   100

Definition at line 821 of file ts.h.

#define TS_R_COULD_NOT_SET_ENGINE   127

Definition at line 822 of file ts.h.

#define TS_R_COULD_NOT_SET_TIME   115

Definition at line 823 of file ts.h.

#define TS_R_D2I_TS_RESP_INT_FAILED   128

Definition at line 824 of file ts.h.

#define TS_R_DETACHED_CONTENT   134

Definition at line 825 of file ts.h.

#define TS_R_ESS_ADD_SIGNING_CERT_ERROR   116

Definition at line 826 of file ts.h.

#define TS_R_ESS_SIGNING_CERTIFICATE_ERROR   101

Definition at line 827 of file ts.h.

#define TS_R_INVALID_NULL_POINTER   102

Definition at line 828 of file ts.h.

#define TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE   117

Definition at line 829 of file ts.h.

#define TS_R_MESSAGE_IMPRINT_MISMATCH   103

Definition at line 830 of file ts.h.

#define TS_R_NO_CONTENT   106

Definition at line 833 of file ts.h.

#define TS_R_NO_TIME_STAMP_TOKEN   107

Definition at line 834 of file ts.h.

#define TS_R_NONCE_MISMATCH   104

Definition at line 831 of file ts.h.

#define TS_R_NONCE_NOT_RETURNED   105

Definition at line 832 of file ts.h.

#define TS_R_PKCS7_ADD_SIGNATURE_ERROR   118

Definition at line 835 of file ts.h.

#define TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR   119

Definition at line 836 of file ts.h.

#define TS_R_PKCS7_TO_TS_TST_INFO_FAILED   129

Definition at line 837 of file ts.h.

#define TS_R_POLICY_MISMATCH   108

Definition at line 838 of file ts.h.

#define TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   120

Definition at line 839 of file ts.h.

#define TS_R_RESPONSE_SETUP_ERROR   121

Definition at line 840 of file ts.h.

#define TS_R_SIGNATURE_FAILURE   109

Definition at line 841 of file ts.h.

#define TS_R_THERE_MUST_BE_ONE_SIGNER   110

Definition at line 842 of file ts.h.

#define TS_R_TIME_SYSCALL_ERROR   122

Definition at line 843 of file ts.h.

#define TS_R_TOKEN_NOT_PRESENT   130

Definition at line 844 of file ts.h.

#define TS_R_TOKEN_PRESENT   131

Definition at line 845 of file ts.h.

#define TS_R_TS_DATASIGN   124

Definition at line 849 of file ts.h.

#define TS_R_TSA_NAME_MISMATCH   111

Definition at line 846 of file ts.h.

#define TS_R_TSA_UNTRUSTED   112

Definition at line 847 of file ts.h.

#define TS_R_TST_INFO_SETUP_ERROR   123

Definition at line 848 of file ts.h.

#define TS_R_UNACCEPTABLE_POLICY   125

Definition at line 850 of file ts.h.

#define TS_R_UNSUPPORTED_MD_ALGORITHM   126

Definition at line 851 of file ts.h.

#define TS_R_UNSUPPORTED_VERSION   113

Definition at line 852 of file ts.h.

#define TS_R_WRONG_CONTENT_TYPE   114

Definition at line 853 of file ts.h.

#define TS_STATUS_GRANTED   0

Definition at line 198 of file ts.h.

#define TS_STATUS_GRANTED_WITH_MODS   1

Definition at line 199 of file ts.h.

#define TS_STATUS_REJECTION   2

Definition at line 200 of file ts.h.

#define TS_STATUS_REVOCATION_NOTIFICATION   5

Definition at line 203 of file ts.h.

#define TS_STATUS_REVOCATION_WARNING   4

Definition at line 202 of file ts.h.

#define TS_STATUS_WAITING   3

Definition at line 201 of file ts.h.

#define TS_TSA_NAME   0x01

Definition at line 470 of file ts.h.

#define TS_VFY_ALL_DATA
Value:

Definition at line 644 of file ts.h.

#define TS_VFY_ALL_IMPRINT
Value:

Definition at line 637 of file ts.h.

#define TS_VFY_DATA   (1u << 4)

Definition at line 628 of file ts.h.

#define TS_VFY_IMPRINT   (1u << 3)

Definition at line 624 of file ts.h.

#define TS_VFY_NONCE   (1u << 5)

Definition at line 630 of file ts.h.

#define TS_VFY_POLICY   (1u << 2)

Definition at line 621 of file ts.h.

#define TS_VFY_SIGNATURE   (1u << 0)

Definition at line 617 of file ts.h.

#define TS_VFY_SIGNER   (1u << 6)

Definition at line 632 of file ts.h.

#define TS_VFY_TSA_NAME   (1u << 7)

Definition at line 634 of file ts.h.

#define TS_VFY_VERSION   (1u << 1)

Definition at line 619 of file ts.h.

Typedef Documentation

typedef struct ESS_cert_id ESS_CERT_ID
typedef struct TS_accuracy_st TS_ACCURACY
typedef int(* TS_extension_cb)(struct TS_resp_ctx *, X509_EXTENSION *, void *)

Definition at line 498 of file ts.h.

typedef struct TS_req_st TS_REQ
typedef struct TS_resp_st TS_RESP
typedef struct TS_resp_ctx TS_RESP_CTX
typedef ASN1_INTEGER*(* TS_serial_cb)(struct TS_resp_ctx *, void *)

Definition at line 486 of file ts.h.

typedef int(* TS_time_cb)(struct TS_resp_ctx *, void *, long *sec, long *usec)

Definition at line 491 of file ts.h.

typedef struct TS_tst_info_st TS_TST_INFO
typedef struct TS_verify_ctx TS_VERIFY_CTX

Function Documentation

ESS_CERT_ID* d2i_ESS_CERT_ID ( ESS_CERT_ID **  a,
const unsigned char **  pp,
long  length 
)
ESS_ISSUER_SERIAL* d2i_ESS_ISSUER_SERIAL ( ESS_ISSUER_SERIAL **  a,
const unsigned char **  pp,
long  length 
)
ESS_SIGNING_CERT* d2i_ESS_SIGNING_CERT ( ESS_SIGNING_CERT **  a,
const unsigned char **  pp,
long  length 
)
TS_ACCURACY* d2i_TS_ACCURACY ( TS_ACCURACY **  a,
const unsigned char **  pp,
long  length 
)
TS_MSG_IMPRINT* d2i_TS_MSG_IMPRINT ( TS_MSG_IMPRINT **  a,
const unsigned char **  pp,
long  length 
)
TS_MSG_IMPRINT* d2i_TS_MSG_IMPRINT_bio ( BIO fp,
TS_MSG_IMPRINT **  a 
)
TS_MSG_IMPRINT* d2i_TS_MSG_IMPRINT_fp ( FILE *  fp,
TS_MSG_IMPRINT **  a 
)
TS_REQ* d2i_TS_REQ ( TS_REQ **  a,
const unsigned char **  pp,
long  length 
)
TS_REQ* d2i_TS_REQ_bio ( BIO fp,
TS_REQ **  a 
)
TS_REQ* d2i_TS_REQ_fp ( FILE *  fp,
TS_REQ **  a 
)
TS_RESP* d2i_TS_RESP ( TS_RESP **  a,
const unsigned char **  pp,
long  length 
)
TS_RESP* d2i_TS_RESP_bio ( BIO fp,
TS_RESP **  a 
)
TS_RESP* d2i_TS_RESP_fp ( FILE *  fp,
TS_RESP **  a 
)
TS_STATUS_INFO* d2i_TS_STATUS_INFO ( TS_STATUS_INFO **  a,
const unsigned char **  pp,
long  length 
)
TS_TST_INFO* d2i_TS_TST_INFO ( TS_TST_INFO **  a,
const unsigned char **  pp,
long  length 
)
TS_TST_INFO* d2i_TS_TST_INFO_bio ( BIO fp,
TS_TST_INFO **  a 
)
TS_TST_INFO* d2i_TS_TST_INFO_fp ( FILE *  fp,
TS_TST_INFO **  a 
)
void ERR_load_TS_strings ( void  )

Definition at line 169 of file ts_err.c.

ESS_CERT_ID* ESS_CERT_ID_dup ( ESS_CERT_ID a)
void ESS_CERT_ID_free ( ESS_CERT_ID a)
ESS_CERT_ID* ESS_CERT_ID_new ( void  )
ESS_ISSUER_SERIAL* ESS_ISSUER_SERIAL_dup ( ESS_ISSUER_SERIAL a)
void ESS_ISSUER_SERIAL_free ( ESS_ISSUER_SERIAL a)
ESS_ISSUER_SERIAL* ESS_ISSUER_SERIAL_new ( void  )
ESS_SIGNING_CERT* ESS_SIGNING_CERT_dup ( ESS_SIGNING_CERT a)
void ESS_SIGNING_CERT_free ( ESS_SIGNING_CERT a)
ESS_SIGNING_CERT* ESS_SIGNING_CERT_new ( void  )
int i2d_ESS_CERT_ID ( const ESS_CERT_ID a,
unsigned char **  pp 
)
int i2d_ESS_ISSUER_SERIAL ( const ESS_ISSUER_SERIAL a,
unsigned char **  pp 
)
int i2d_ESS_SIGNING_CERT ( const ESS_SIGNING_CERT a,
unsigned char **  pp 
)
int i2d_TS_ACCURACY ( const TS_ACCURACY a,
unsigned char **  pp 
)
int i2d_TS_MSG_IMPRINT ( const TS_MSG_IMPRINT a,
unsigned char **  pp 
)
int i2d_TS_MSG_IMPRINT_bio ( BIO fp,
TS_MSG_IMPRINT a 
)
int i2d_TS_MSG_IMPRINT_fp ( FILE *  fp,
TS_MSG_IMPRINT a 
)
int i2d_TS_REQ ( const TS_REQ a,
unsigned char **  pp 
)
int i2d_TS_REQ_bio ( BIO fp,
TS_REQ a 
)
int i2d_TS_REQ_fp ( FILE *  fp,
TS_REQ a 
)
int i2d_TS_RESP ( const TS_RESP a,
unsigned char **  pp 
)
int i2d_TS_RESP_bio ( BIO fp,
TS_RESP a 
)
int i2d_TS_RESP_fp ( FILE *  fp,
TS_RESP a 
)
int i2d_TS_STATUS_INFO ( const TS_STATUS_INFO a,
unsigned char **  pp 
)
int i2d_TS_TST_INFO ( const TS_TST_INFO a,
unsigned char **  pp 
)
int i2d_TS_TST_INFO_bio ( BIO fp,
TS_TST_INFO a 
)
int i2d_TS_TST_INFO_fp ( FILE *  fp,
TS_TST_INFO a 
)
TS_TST_INFO* PKCS7_to_TS_TST_INFO ( PKCS7 token)
STACK_OF ( X509_EXTENSION  )

Definition at line 184 of file ts_req_utils.c.

STACK_OF ( X509  ) const
TS_ACCURACY* TS_ACCURACY_dup ( TS_ACCURACY a)
void TS_ACCURACY_free ( TS_ACCURACY a)
const ASN1_INTEGER* TS_ACCURACY_get_micros ( const TS_ACCURACY a)

Definition at line 299 of file ts_rsp_utils.c.

const ASN1_INTEGER* TS_ACCURACY_get_millis ( const TS_ACCURACY a)

Definition at line 273 of file ts_rsp_utils.c.

const ASN1_INTEGER* TS_ACCURACY_get_seconds ( const TS_ACCURACY a)

Definition at line 247 of file ts_rsp_utils.c.

TS_ACCURACY* TS_ACCURACY_new ( void  )
int TS_ACCURACY_set_micros ( TS_ACCURACY a,
const ASN1_INTEGER micros 
)

Definition at line 278 of file ts_rsp_utils.c.

int TS_ACCURACY_set_millis ( TS_ACCURACY a,
const ASN1_INTEGER millis 
)

Definition at line 252 of file ts_rsp_utils.c.

int TS_ACCURACY_set_seconds ( TS_ACCURACY a,
const ASN1_INTEGER seconds 
)

Definition at line 230 of file ts_rsp_utils.c.

int TS_ASN1_INTEGER_print_bio ( BIO bio,
const ASN1_INTEGER num 
)

Definition at line 70 of file ts_lib.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.

int TS_ext_print_bio ( BIO bio,
const STACK_OF(X509_EXTENSION)*  extensions 
)

Definition at line 100 of file ts_lib.c.

TS_MSG_IMPRINT* TS_MSG_IMPRINT_dup ( TS_MSG_IMPRINT a)
void TS_MSG_IMPRINT_free ( TS_MSG_IMPRINT a)
X509_ALGOR* TS_MSG_IMPRINT_get_algo ( TS_MSG_IMPRINT a)

Definition at line 114 of file ts_req_utils.c.

ASN1_OCTET_STRING* TS_MSG_IMPRINT_get_msg ( TS_MSG_IMPRINT a)

Definition at line 124 of file ts_req_utils.c.

TS_MSG_IMPRINT* TS_MSG_IMPRINT_new ( void  )
int TS_MSG_IMPRINT_print_bio ( BIO bio,
TS_MSG_IMPRINT msg 
)

Definition at line 133 of file ts_lib.c.

int TS_MSG_IMPRINT_set_algo ( TS_MSG_IMPRINT a,
X509_ALGOR alg 
)

Definition at line 97 of file ts_req_utils.c.

int TS_MSG_IMPRINT_set_msg ( TS_MSG_IMPRINT a,
unsigned char *  d,
int  len 
)

Definition at line 119 of file ts_req_utils.c.

int TS_OBJ_print_bio ( BIO bio,
const ASN1_OBJECT obj 
)

Definition at line 89 of file ts_lib.c.

int TS_REQ_add_ext ( TS_REQ a,
X509_EXTENSION ex,
int  loc 
)

Definition at line 226 of file ts_req_utils.c.

X509_EXTENSION* TS_REQ_delete_ext ( TS_REQ a,
int  loc 
)

Definition at line 221 of file ts_req_utils.c.

TS_REQ* TS_REQ_dup ( TS_REQ a)
void TS_REQ_ext_free ( TS_REQ a)

Definition at line 189 of file ts_req_utils.c.

void TS_REQ_free ( TS_REQ a)
int TS_REQ_get_cert_req ( const TS_REQ a)

Definition at line 179 of file ts_req_utils.c.

X509_EXTENSION* TS_REQ_get_ext ( TS_REQ a,
int  loc 
)

Definition at line 216 of file ts_req_utils.c.

int TS_REQ_get_ext_by_critical ( TS_REQ a,
int  crit,
int  lastpos 
)

Definition at line 211 of file ts_req_utils.c.

int TS_REQ_get_ext_by_NID ( TS_REQ a,
int  nid,
int  lastpos 
)

Definition at line 201 of file ts_req_utils.c.

int TS_REQ_get_ext_by_OBJ ( TS_REQ a,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 206 of file ts_req_utils.c.

int TS_REQ_get_ext_count ( TS_REQ a)

Definition at line 196 of file ts_req_utils.c.

void* TS_REQ_get_ext_d2i ( TS_REQ a,
int  nid,
int *  crit,
int *  idx 
)

Definition at line 231 of file ts_req_utils.c.

TS_MSG_IMPRINT* TS_REQ_get_msg_imprint ( TS_REQ a)

Definition at line 92 of file ts_req_utils.c.

const ASN1_INTEGER* TS_REQ_get_nonce ( const TS_REQ a)

Definition at line 168 of file ts_req_utils.c.

ASN1_OBJECT* TS_REQ_get_policy_id ( TS_REQ a)

Definition at line 146 of file ts_req_utils.c.

long TS_REQ_get_version ( const TS_REQ a)

Definition at line 70 of file ts_req_utils.c.

TS_REQ* TS_REQ_new ( void  )
int TS_REQ_print_bio ( BIO bio,
TS_REQ a 
)

Definition at line 68 of file ts_req_print.c.

int TS_REQ_set_cert_req ( TS_REQ a,
int  cert_req 
)

Definition at line 173 of file ts_req_utils.c.

int TS_REQ_set_msg_imprint ( TS_REQ a,
TS_MSG_IMPRINT msg_imprint 
)

Definition at line 75 of file ts_req_utils.c.

int TS_REQ_set_nonce ( TS_REQ a,
const ASN1_INTEGER nonce 
)

Definition at line 151 of file ts_req_utils.c.

int TS_REQ_set_policy_id ( TS_REQ a,
ASN1_OBJECT policy 
)

Definition at line 129 of file ts_req_utils.c.

int TS_REQ_set_version ( TS_REQ a,
long  version 
)

Definition at line 65 of file ts_req_utils.c.

TS_VERIFY_CTX* TS_REQ_to_TS_VERIFY_CTX ( TS_REQ req,
TS_VERIFY_CTX ctx 
)

Definition at line 109 of file ts_verify_ctx.c.

TS_RESP* TS_RESP_create_response ( TS_RESP_CTX ctx,
BIO req_bio 
)

Definition at line 418 of file ts_rsp_sign.c.

int TS_RESP_CTX_add_failure_info ( TS_RESP_CTX ctx,
int  failure 
)

Definition at line 386 of file ts_rsp_sign.c.

void TS_RESP_CTX_add_flags ( TS_RESP_CTX ctx,
int  flags 
)

Definition at line 319 of file ts_rsp_sign.c.

int TS_RESP_CTX_add_md ( TS_RESP_CTX ctx,
const EVP_MD md 
)

Definition at line 275 of file ts_rsp_sign.c.

int TS_RESP_CTX_add_policy ( TS_RESP_CTX ctx,
ASN1_OBJECT policy 
)

Definition at line 258 of file ts_rsp_sign.c.

void TS_RESP_CTX_free ( TS_RESP_CTX ctx)

Definition at line 185 of file ts_rsp_sign.c.

TS_REQ* TS_RESP_CTX_get_request ( TS_RESP_CTX ctx)

Definition at line 399 of file ts_rsp_sign.c.

TS_TST_INFO* TS_RESP_CTX_get_tst_info ( TS_RESP_CTX ctx)

Definition at line 404 of file ts_rsp_sign.c.

TS_RESP_CTX* TS_RESP_CTX_new ( void  )

Definition at line 166 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_accuracy ( TS_RESP_CTX ctx,
int  secs,
int  millis,
int  micros 
)

Definition at line 297 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_certs ( TS_RESP_CTX ctx,
STACK_OF(X509)*  certs 
)

Definition at line 234 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_clock_precision_digits ( TS_RESP_CTX ctx,
unsigned  clock_precision_digits 
)

Definition at line 409 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_def_policy ( TS_RESP_CTX ctx,
ASN1_OBJECT def_policy 
)

Definition at line 224 of file ts_rsp_sign.c.

void TS_RESP_CTX_set_extension_cb ( TS_RESP_CTX ctx,
TS_extension_cb  cb,
void data 
)

Definition at line 336 of file ts_rsp_sign.c.

void TS_RESP_CTX_set_serial_cb ( TS_RESP_CTX ctx,
TS_serial_cb  cb,
void data 
)

Definition at line 324 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_signer_cert ( TS_RESP_CTX ctx,
X509 signer 
)

Definition at line 201 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_signer_key ( TS_RESP_CTX ctx,
EVP_PKEY key 
)

Definition at line 215 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_status_info ( TS_RESP_CTX ctx,
int  status,
const char *  text 
)

Definition at line 343 of file ts_rsp_sign.c.

int TS_RESP_CTX_set_status_info_cond ( TS_RESP_CTX ctx,
int  status,
const char *  text 
)

Definition at line 372 of file ts_rsp_sign.c.

void TS_RESP_CTX_set_time_cb ( TS_RESP_CTX ctx,
TS_time_cb  cb,
void data 
)

Definition at line 330 of file ts_rsp_sign.c.

TS_RESP* TS_RESP_dup ( TS_RESP a)
void TS_RESP_free ( TS_RESP a)
TS_STATUS_INFO* TS_RESP_get_status_info ( TS_RESP a)

Definition at line 85 of file ts_rsp_utils.c.

PKCS7* TS_RESP_get_token ( TS_RESP a)

Definition at line 100 of file ts_rsp_utils.c.

TS_TST_INFO* TS_RESP_get_tst_info ( TS_RESP a)

Definition at line 105 of file ts_rsp_utils.c.

TS_RESP* TS_RESP_new ( void  )
int TS_RESP_print_bio ( BIO bio,
TS_RESP a 
)

Definition at line 80 of file ts_rsp_print.c.

int TS_RESP_set_status_info ( TS_RESP a,
TS_STATUS_INFO info 
)

Definition at line 67 of file ts_rsp_utils.c.

void TS_RESP_set_tst_info ( TS_RESP a,
PKCS7 p7,
TS_TST_INFO tst_info 
)

Definition at line 91 of file ts_rsp_utils.c.

int TS_RESP_verify_response ( TS_VERIFY_CTX ctx,
TS_RESP response 
)

Definition at line 362 of file ts_rsp_verify.c.

int TS_RESP_verify_signature ( PKCS7 token,
STACK_OF(X509)*  certs,
X509_STORE store,
X509 **  signer_out 
)

Definition at line 140 of file ts_rsp_verify.c.

int TS_RESP_verify_token ( TS_VERIFY_CTX ctx,
PKCS7 token 
)

Definition at line 384 of file ts_rsp_verify.c.

TS_STATUS_INFO* TS_STATUS_INFO_dup ( TS_STATUS_INFO a)
void TS_STATUS_INFO_free ( TS_STATUS_INFO a)
TS_STATUS_INFO* TS_STATUS_INFO_new ( void  )
int TS_STATUS_INFO_print_bio ( BIO bio,
TS_STATUS_INFO a 
)

Definition at line 97 of file ts_rsp_print.c.

int TS_TST_INFO_add_ext ( TS_TST_INFO a,
X509_EXTENSION ex,
int  loc 
)

Definition at line 401 of file ts_rsp_utils.c.

X509_EXTENSION* TS_TST_INFO_delete_ext ( TS_TST_INFO a,
int  loc 
)

Definition at line 396 of file ts_rsp_utils.c.

TS_TST_INFO* TS_TST_INFO_dup ( TS_TST_INFO a)
void TS_TST_INFO_ext_free ( TS_TST_INFO a)

Definition at line 364 of file ts_rsp_utils.c.

void TS_TST_INFO_free ( TS_TST_INFO a)
TS_ACCURACY* TS_TST_INFO_get_accuracy ( TS_TST_INFO a)

Definition at line 225 of file ts_rsp_utils.c.

X509_EXTENSION* TS_TST_INFO_get_ext ( TS_TST_INFO a,
int  loc 
)

Definition at line 391 of file ts_rsp_utils.c.

int TS_TST_INFO_get_ext_by_critical ( TS_TST_INFO a,
int  crit,
int  lastpos 
)

Definition at line 386 of file ts_rsp_utils.c.

int TS_TST_INFO_get_ext_by_NID ( TS_TST_INFO a,
int  nid,
int  lastpos 
)

Definition at line 376 of file ts_rsp_utils.c.

int TS_TST_INFO_get_ext_by_OBJ ( TS_TST_INFO a,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 381 of file ts_rsp_utils.c.

int TS_TST_INFO_get_ext_count ( TS_TST_INFO a)

Definition at line 371 of file ts_rsp_utils.c.

void* TS_TST_INFO_get_ext_d2i ( TS_TST_INFO a,
int  nid,
int *  crit,
int *  idx 
)

Definition at line 406 of file ts_rsp_utils.c.

TS_MSG_IMPRINT* TS_TST_INFO_get_msg_imprint ( TS_TST_INFO a)

Definition at line 159 of file ts_rsp_utils.c.

const ASN1_INTEGER* TS_TST_INFO_get_nonce ( const TS_TST_INFO a)

Definition at line 332 of file ts_rsp_utils.c.

int TS_TST_INFO_get_ordering ( const TS_TST_INFO a)

Definition at line 310 of file ts_rsp_utils.c.

ASN1_OBJECT* TS_TST_INFO_get_policy_id ( TS_TST_INFO a)

Definition at line 137 of file ts_rsp_utils.c.

const ASN1_INTEGER* TS_TST_INFO_get_serial ( const TS_TST_INFO a)

Definition at line 181 of file ts_rsp_utils.c.

const ASN1_GENERALIZEDTIME* TS_TST_INFO_get_time ( const TS_TST_INFO a)

Definition at line 203 of file ts_rsp_utils.c.

GENERAL_NAME* TS_TST_INFO_get_tsa ( TS_TST_INFO a)

Definition at line 354 of file ts_rsp_utils.c.

long TS_TST_INFO_get_version ( const TS_TST_INFO a)

Definition at line 115 of file ts_rsp_utils.c.

TS_TST_INFO* TS_TST_INFO_new ( void  )
int TS_TST_INFO_print_bio ( BIO bio,
TS_TST_INFO a 
)

Definition at line 183 of file ts_rsp_print.c.

int TS_TST_INFO_set_accuracy ( TS_TST_INFO a,
TS_ACCURACY accuracy 
)

Definition at line 208 of file ts_rsp_utils.c.

int TS_TST_INFO_set_msg_imprint ( TS_TST_INFO a,
TS_MSG_IMPRINT msg_imprint 
)

Definition at line 142 of file ts_rsp_utils.c.

int TS_TST_INFO_set_nonce ( TS_TST_INFO a,
const ASN1_INTEGER nonce 
)

Definition at line 315 of file ts_rsp_utils.c.

int TS_TST_INFO_set_ordering ( TS_TST_INFO a,
int  ordering 
)

Definition at line 304 of file ts_rsp_utils.c.

int TS_TST_INFO_set_policy_id ( TS_TST_INFO a,
ASN1_OBJECT policy_id 
)

Definition at line 120 of file ts_rsp_utils.c.

int TS_TST_INFO_set_serial ( TS_TST_INFO a,
const ASN1_INTEGER serial 
)

Definition at line 164 of file ts_rsp_utils.c.

int TS_TST_INFO_set_time ( TS_TST_INFO a,
const ASN1_GENERALIZEDTIME gtime 
)

Definition at line 186 of file ts_rsp_utils.c.

int TS_TST_INFO_set_tsa ( TS_TST_INFO a,
GENERAL_NAME tsa 
)

Definition at line 337 of file ts_rsp_utils.c.

int TS_TST_INFO_set_version ( TS_TST_INFO a,
long  version 
)

Definition at line 110 of file ts_rsp_utils.c.

void TS_VERIFY_CTX_cleanup ( TS_VERIFY_CTX ctx)

Definition at line 88 of file ts_verify_ctx.c.

void TS_VERIFY_CTX_free ( TS_VERIFY_CTX ctx)

Definition at line 80 of file ts_verify_ctx.c.

void TS_VERIFY_CTX_init ( TS_VERIFY_CTX ctx)

Definition at line 74 of file ts_verify_ctx.c.

TS_VERIFY_CTX* TS_VERIFY_CTX_new ( void  )

Definition at line 63 of file ts_verify_ctx.c.

int TS_X509_ALGOR_print_bio ( BIO bio,
const X509_ALGOR alg 
)

Definition at line 126 of file ts_lib.c.