-/* $OpenBSD: x509_policy.c,v 1.23 2023/04/28 15:39:29 tb Exp $ */
+/* $OpenBSD: x509_policy.c,v 1.24 2023/04/28 15:57:38 tb Exp $ */
/*
* Copyright (c) 2022, Google Inc.
*
goto err;
}
- sk_POLICYINFO_set_cmp_func(policies, policyinfo_cmp);
+ (void)sk_POLICYINFO_set_cmp_func(policies, policyinfo_cmp);
sk_POLICYINFO_sort(policies);
cert_has_any_policy = 0;
for (i = 0; i < sk_POLICYINFO_num(policies); i++) {
}
/* Sort to group by issuerDomainPolicy. */
- sk_POLICY_MAPPING_set_cmp_func(mappings, compare_issuer_policy);
+ (void)sk_POLICY_MAPPING_set_cmp_func(mappings,
+ compare_issuer_policy);
sk_POLICY_MAPPING_sort(mappings);
if (mapping_allowed) {
}
/* Sort to group by subjectDomainPolicy. */
- sk_POLICY_MAPPING_set_cmp_func(mappings, compare_subject_policy);
+ (void)sk_POLICY_MAPPING_set_cmp_func(mappings, compare_subject_policy);
sk_POLICY_MAPPING_sort(mappings);
/* Convert |mappings| to our "expected_policy_set" representation. */
user_policies);
if (user_policies_sorted == NULL)
goto err;
- sk_ASN1_OBJECT_set_cmp_func(user_policies_sorted,
+ (void)sk_ASN1_OBJECT_set_cmp_func(user_policies_sorted,
asn1_object_cmp);
sk_ASN1_OBJECT_sort(user_policies_sorted);
}