Lines Matching refs:policy
32 ASN1_OBJECT *policy);
206 int TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *policy)
213 if ((copy = OBJ_dup(policy)) == NULL)
377 ASN1_OBJECT *policy;
397 if ((policy = ts_RESP_get_policy(ctx)) == NULL)
399 if ((ctx->tst_info = ts_RESP_create_tst_info(ctx, policy)) == NULL)
497 /* Returns the TSA policy based on the requested and acceptable policies. */
501 ASN1_OBJECT *policy = NULL;
509 policy = ctx->default_policy;
511 /* Check if the policy is acceptable. */
512 for (i = 0; !policy && i < sk_ASN1_OBJECT_num(ctx->policies); ++i) {
515 policy = current;
517 if (policy == NULL) {
520 "Requested policy is not " "supported.");
523 return policy;
528 ASN1_OBJECT *policy)
543 if (!TS_TST_INFO_set_policy_id(tst_info, policy))