Lines Matching defs:policy
81 ASN1_OBJECT *policy);
256 int TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, ASN1_OBJECT *policy)
260 /* Create new policy stack if necessary. */
263 if (!(copy = OBJ_dup(policy)))
424 ASN1_OBJECT *policy;
453 if (!(policy = TS_RESP_get_policy(ctx)))
457 if (!(ctx->tst_info = TS_RESP_create_tst_info(ctx, policy)))
564 /* Returns the TSA policy based on the requested and acceptable policies. */
568 ASN1_OBJECT *policy = NULL;
576 * Return the default policy if none is requested or the default is
580 policy = ctx->default_policy;
582 /* Check if the policy is acceptable. */
583 for (i = 0; !policy && i < sk_ASN1_OBJECT_num(ctx->policies); ++i) {
586 policy = current;
588 if (!policy) {
591 "Requested policy is not " "supported.");
594 return policy;
599 ASN1_OBJECT *policy)
614 if (!TS_TST_INFO_set_policy_id(tst_info, policy))