Lines Matching refs:policies
100 sk_ASN1_OBJECT_pop_free(param->policies, ASN1_OBJECT_free); in X509_VERIFY_PARAM_free()
188 if (test_x509_verify_param_copy(policies, NULL)) { in X509_VERIFY_PARAM_inherit()
189 if (!X509_VERIFY_PARAM_set1_policies(dest, src->policies)) in X509_VERIFY_PARAM_inherit()
333 if (param->policies == NULL) { in X509_VERIFY_PARAM_add0_policy()
334 param->policies = sk_ASN1_OBJECT_new_null(); in X509_VERIFY_PARAM_add0_policy()
335 if (param->policies == NULL) in X509_VERIFY_PARAM_add0_policy()
339 if (sk_ASN1_OBJECT_push(param->policies, policy) <= 0) in X509_VERIFY_PARAM_add0_policy()
345 STACK_OF(ASN1_OBJECT) *policies) in X509_VERIFY_PARAM_set1_policies()
354 sk_ASN1_OBJECT_pop_free(param->policies, ASN1_OBJECT_free); in X509_VERIFY_PARAM_set1_policies()
356 if (policies == NULL) { in X509_VERIFY_PARAM_set1_policies()
357 param->policies = NULL; in X509_VERIFY_PARAM_set1_policies()
361 param->policies = sk_ASN1_OBJECT_new_null(); in X509_VERIFY_PARAM_set1_policies()
362 if (param->policies == NULL) in X509_VERIFY_PARAM_set1_policies()
365 for (i = 0; i < sk_ASN1_OBJECT_num(policies); i++) { in X509_VERIFY_PARAM_set1_policies()
366 oid = sk_ASN1_OBJECT_value(policies, i); in X509_VERIFY_PARAM_set1_policies()
370 if (!sk_ASN1_OBJECT_push(param->policies, doid)) { in X509_VERIFY_PARAM_set1_policies()