TS_TST_INFO
TS_TST_INFO *PKCS7_to_TS_TST_INFO(PKCS7 *token);
TS_TST_INFO *TS_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_INFO *d2i_TS_TST_INFO(TS_TST_INFO **a, const unsigned char **pp,
TS_TST_INFO *TS_TST_INFO_dup(TS_TST_INFO *a);
TS_TST_INFO *d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a);
int i2d_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO *a);
TS_TST_INFO *d2i_TS_TST_INFO_bio(BIO *fp, TS_TST_INFO **a);
int i2d_TS_TST_INFO_bio(BIO *fp, TS_TST_INFO *a);
void TS_RESP_set_tst_info(TS_RESP *a, PKCS7 *p7, TS_TST_INFO *tst_info);
TS_TST_INFO *TS_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_OBJECT *TS_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_IMPRINT *TS_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_INTEGER *TS_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_GENERALIZEDTIME *TS_TST_INFO_get_time(const TS_TST_INFO *a);
int TS_TST_INFO_set_accuracy(TS_TST_INFO *a, TS_ACCURACY *accuracy);
TS_ACCURACY *TS_TST_INFO_get_accuracy(TS_TST_INFO *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_INTEGER *TS_TST_INFO_get_nonce(const TS_TST_INFO *a);
int TS_TST_INFO_set_tsa(TS_TST_INFO *a, GENERAL_NAME *tsa);
GENERAL_NAME *TS_TST_INFO_get_tsa(TS_TST_INFO *a);
STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(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, const ASN1_OBJECT *obj,
int TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos);
X509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc);
X509_EXTENSION *TS_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);
void *TS_TST_INFO_get_ext_d2i(TS_TST_INFO *a, int nid, int *crit, int *idx);
TS_TST_INFO *TS_RESP_CTX_get_tst_info(TS_RESP_CTX *ctx);
int TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a);
TS_TST_INFO *
.offset = offsetof(TS_TST_INFO, version),
.offset = offsetof(TS_TST_INFO, policy_id),
.offset = offsetof(TS_TST_INFO, msg_imprint),
.offset = offsetof(TS_TST_INFO, serial),
.offset = offsetof(TS_TST_INFO, time),
.offset = offsetof(TS_TST_INFO, accuracy),
.offset = offsetof(TS_TST_INFO, ordering),
.offset = offsetof(TS_TST_INFO, nonce),
.offset = offsetof(TS_TST_INFO, tsa),
.offset = offsetof(TS_TST_INFO, extensions),
.size = sizeof(TS_TST_INFO),
TS_TST_INFO *
d2i_TS_TST_INFO(TS_TST_INFO **a, const unsigned char **in, long len)
return (TS_TST_INFO *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
i2d_TS_TST_INFO(const TS_TST_INFO *a, unsigned char **out)
TS_TST_INFO *
return (TS_TST_INFO *)ASN1_item_new(&TS_TST_INFO_it);
TS_TST_INFO_free(TS_TST_INFO *a)
TS_TST_INFO *
TS_TST_INFO_dup(TS_TST_INFO *x)
TS_TST_INFO *
d2i_TS_TST_INFO_bio(BIO *bp, TS_TST_INFO **a)
i2d_TS_TST_INFO_bio(BIO *bp, TS_TST_INFO *a)
TS_TST_INFO *
d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a)
i2d_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO *a)
TS_TST_INFO *tst_info;
TS_TST_INFO *tst_info;
TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a)
TS_TST_INFO *tst_info;
TS_TST_INFO *
static TS_TST_INFO *
TS_TST_INFO *tst_info = NULL;
static TS_TST_INFO *TS_RESP_create_tst_info(TS_RESP_CTX *ctx,
TS_RESP_set_tst_info(TS_RESP *a, PKCS7 *p7, TS_TST_INFO *tst_info)
TS_TST_INFO *
TS_TST_INFO_set_version(TS_TST_INFO *a, long version)
TS_TST_INFO_get_version(const TS_TST_INFO *a)
TS_TST_INFO_set_policy_id(TS_TST_INFO *a, ASN1_OBJECT *policy)
TS_TST_INFO_get_policy_id(TS_TST_INFO *a)
TS_TST_INFO_set_msg_imprint(TS_TST_INFO *a, TS_MSG_IMPRINT *msg_imprint)
TS_TST_INFO_get_msg_imprint(TS_TST_INFO *a)
TS_TST_INFO_set_serial(TS_TST_INFO *a, const ASN1_INTEGER *serial)
TS_TST_INFO_get_serial(const TS_TST_INFO *a)
TS_TST_INFO_set_time(TS_TST_INFO *a, const ASN1_GENERALIZEDTIME *gtime)
TS_TST_INFO_get_time(const TS_TST_INFO *a)
TS_TST_INFO_set_accuracy(TS_TST_INFO *a, TS_ACCURACY *accuracy)
TS_TST_INFO_get_accuracy(TS_TST_INFO *a)
TS_TST_INFO_set_ordering(TS_TST_INFO *a, int ordering)
TS_TST_INFO_get_ordering(const TS_TST_INFO *a)
TS_TST_INFO_set_nonce(TS_TST_INFO *a, const ASN1_INTEGER *nonce)
TS_TST_INFO_get_nonce(const TS_TST_INFO *a)
TS_TST_INFO_set_tsa(TS_TST_INFO *a, GENERAL_NAME *tsa)
TS_TST_INFO_get_tsa(TS_TST_INFO *a)
STACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a)
TS_TST_INFO_ext_free(TS_TST_INFO *a)
TS_TST_INFO_get_ext_count(TS_TST_INFO *a)
TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos)
TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, const ASN1_OBJECT *obj, int lastpos)
TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos)
TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc)
TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc)
TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc)
TS_TST_INFO_get_ext_d2i(TS_TST_INFO *a, int nid, int *crit, int *idx)
TS_TST_INFO *tst_info = TS_RESP_get_tst_info(response);
TS_TST_INFO *tst_info = PKCS7_to_TS_TST_INFO(token);
TS_TST_INFO *tst_info)
TS_check_policy(ASN1_OBJECT *req_oid, TS_TST_INFO *tst_info)
TS_compute_imprint(BIO *data, TS_TST_INFO *tst_info, X509_ALGOR **out_md_alg,
TS_TST_INFO *tst_info)
TS_check_nonces(const ASN1_INTEGER *a, TS_TST_INFO *tst_info)
PKCS7 *token, TS_TST_INFO *tst_info);
static int TS_check_policy(ASN1_OBJECT *req_oid, TS_TST_INFO *tst_info);
static int TS_compute_imprint(BIO *data, TS_TST_INFO *tst_info,
TS_TST_INFO *tst_info);
static int TS_check_nonces(const ASN1_INTEGER *a, TS_TST_INFO *tst_info);
TS_TST_INFO *tst_info = TS_RESP_get_tst_info(response);
TS_TST_INFO *tst_info = NULL;