Lines Matching refs:tst_info

362     return ctx->tst_info;  in TS_RESP_CTX_get_tst_info()
399 if ((ctx->tst_info = ts_RESP_create_tst_info(ctx, policy)) == NULL) in TS_RESP_create_response()
431 ctx->tst_info = NULL; in ts_RESP_CTX_init()
441 TS_TST_INFO_free(ctx->tst_info); in ts_RESP_CTX_cleanup()
442 ctx->tst_info = NULL; in ts_RESP_CTX_cleanup()
531 TS_TST_INFO *tst_info = NULL; in ts_RESP_create_tst_info() local
539 if ((tst_info = TS_TST_INFO_new()) == NULL) in ts_RESP_create_tst_info()
541 if (!TS_TST_INFO_set_version(tst_info, 1)) in ts_RESP_create_tst_info()
543 if (!TS_TST_INFO_set_policy_id(tst_info, policy)) in ts_RESP_create_tst_info()
545 if (!TS_TST_INFO_set_msg_imprint(tst_info, ctx->request->msg_imprint)) in ts_RESP_create_tst_info()
548 || !TS_TST_INFO_set_serial(tst_info, serial)) in ts_RESP_create_tst_info()
554 || !TS_TST_INFO_set_time(tst_info, asn1_time)) in ts_RESP_create_tst_info()
566 if (accuracy && !TS_TST_INFO_set_accuracy(tst_info, accuracy)) in ts_RESP_create_tst_info()
570 && !TS_TST_INFO_set_ordering(tst_info, 1)) in ts_RESP_create_tst_info()
574 && !TS_TST_INFO_set_nonce(tst_info, nonce)) in ts_RESP_create_tst_info()
585 if (!TS_TST_INFO_set_tsa(tst_info, tsa_name)) in ts_RESP_create_tst_info()
592 TS_TST_INFO_free(tst_info); in ts_RESP_create_tst_info()
593 tst_info = NULL; in ts_RESP_create_tst_info()
604 return tst_info; in ts_RESP_create_tst_info()
762 if (!i2d_TS_TST_INFO_bio(p7bio, ctx->tst_info)) { in ts_RESP_sign()
770 TS_RESP_set_tst_info(ctx->response, p7, ctx->tst_info); in ts_RESP_sign()
772 ctx->tst_info = NULL; /* Ownership is lost. */ in ts_RESP_sign()