Lines Matching refs:tst_info

356     return ctx->tst_info;  in TS_RESP_CTX_get_tst_info()
393 if ((ctx->tst_info = ts_RESP_create_tst_info(ctx, policy)) == NULL) in TS_RESP_create_response()
425 ctx->tst_info = NULL; in ts_RESP_CTX_init()
435 TS_TST_INFO_free(ctx->tst_info); in ts_RESP_CTX_cleanup()
436 ctx->tst_info = NULL; in ts_RESP_CTX_cleanup()
529 TS_TST_INFO *tst_info = NULL; in ts_RESP_create_tst_info() local
537 if ((tst_info = TS_TST_INFO_new()) == NULL) in ts_RESP_create_tst_info()
539 if (!TS_TST_INFO_set_version(tst_info, 1)) in ts_RESP_create_tst_info()
541 if (!TS_TST_INFO_set_policy_id(tst_info, policy)) in ts_RESP_create_tst_info()
543 if (!TS_TST_INFO_set_msg_imprint(tst_info, ctx->request->msg_imprint)) in ts_RESP_create_tst_info()
546 || !TS_TST_INFO_set_serial(tst_info, serial)) in ts_RESP_create_tst_info()
552 || !TS_TST_INFO_set_time(tst_info, asn1_time)) in ts_RESP_create_tst_info()
564 if (accuracy && !TS_TST_INFO_set_accuracy(tst_info, accuracy)) in ts_RESP_create_tst_info()
568 && !TS_TST_INFO_set_ordering(tst_info, 1)) in ts_RESP_create_tst_info()
572 && !TS_TST_INFO_set_nonce(tst_info, nonce)) in ts_RESP_create_tst_info()
583 if (!TS_TST_INFO_set_tsa(tst_info, tsa_name)) in ts_RESP_create_tst_info()
590 TS_TST_INFO_free(tst_info); in ts_RESP_create_tst_info()
591 tst_info = NULL; in ts_RESP_create_tst_info()
602 return tst_info; in ts_RESP_create_tst_info()
760 if (!i2d_TS_TST_INFO_bio(p7bio, ctx->tst_info)) { in ts_RESP_sign()
768 TS_RESP_set_tst_info(ctx->response, p7, ctx->tst_info); in ts_RESP_sign()
770 ctx->tst_info = NULL; /* Ownership is lost. */ in ts_RESP_sign()