Lines Matching defs:mappings
68 * duplicate mappings.
477 const POLICY_MAPPINGS *mappings = data;
480 if (sk_POLICY_MAPPING_find(mappings, &mapping) < 0)
487 * process_policy_mappings processes the policy mappings extension of |cert|,
510 POLICY_MAPPINGS *mappings;
518 mappings = X509_get_ext_d2i(cert, NID_policy_mappings, &critical, NULL);
519 if (mappings == NULL && critical != -1) {
520 /* Syntax error in the policy mappings extension. */
524 if (mappings != NULL) {
530 if (sk_POLICY_MAPPING_num(mappings) == 0) {
536 for (i = 0; i < sk_POLICY_MAPPING_num(mappings); i++) {
537 mapping = sk_POLICY_MAPPING_value(mappings, i);
544 (void)sk_POLICY_MAPPING_set_cmp_func(mappings,
546 sk_POLICY_MAPPING_sort(mappings);
558 for (i = 0; i < sk_POLICY_MAPPING_num(mappings); i++) {
559 mapping = sk_POLICY_MAPPING_value(mappings, i);
561 * There may be multiple mappings with the same
595 if (!sk_POLICY_MAPPING_is_sorted(mappings))
598 delete_if_mapped, mappings);
599 sk_POLICY_MAPPING_pop_free(mappings,
601 mappings = NULL;
607 * value, itself. Add those to |mappings|.
609 if (mappings == NULL) {
610 mappings = sk_POLICY_MAPPING_new_null();
611 if (mappings == NULL)
624 !sk_POLICY_MAPPING_push(mappings, mapping)) {
632 (void)sk_POLICY_MAPPING_set_cmp_func(mappings, compare_subject_policy);
633 sk_POLICY_MAPPING_sort(mappings);
635 /* Convert |mappings| to our "expected_policy_set" representation. */
642 for (i = 0; i < sk_POLICY_MAPPING_num(mappings); i++) {
643 mapping = sk_POLICY_MAPPING_value(mappings, i);
645 * Skip mappings where |issuerDomainPolicy| does not appear in
683 sk_POLICY_MAPPING_pop_free(mappings, POLICY_MAPPING_free);