Lines Matching refs:ip1
122 const char *ip1; member
177 ASN1_OCTET_STRING *ip1 = NULL, *ip2 = NULL; in test_addr_ranges() local
192 ip1 = a2i_IPADDRESS(ranges[i].ip1); in test_addr_ranges()
193 if (!TEST_ptr(ip1)) in test_addr_ranges()
195 if (!TEST_true(ip1->length == 4 || ip1->length == 16)) in test_addr_ranges()
200 if (!TEST_int_eq(ip2->length, ip1->length)) in test_addr_ranges()
202 if (!TEST_true(memcmp(ip1->data, ip2->data, ip1->length) <= 0)) in test_addr_ranges()
205 if (!TEST_true(X509v3_addr_add_range(addr, ranges[i].afi, NULL, ip1->data, ip2->data))) in test_addr_ranges()
216 ASN1_OCTET_STRING_free(ip1); in test_addr_ranges()
218 ip1 = ip2 = NULL; in test_addr_ranges()
224 ASN1_OCTET_STRING_free(ip1); in test_addr_ranges()
234 ASN1_OCTET_STRING *ip1 = NULL, *ip2 = NULL; in test_addr_fam_len() local
243 ip1 = a2i_IPADDRESS(ranges[0].ip1); in test_addr_fam_len()
244 if (!TEST_ptr(ip1)) in test_addr_fam_len()
249 if (!TEST_true(X509v3_addr_add_range(addr, ranges[0].afi, NULL, ip1->data, ip2->data))) in test_addr_fam_len()
319 ASN1_OCTET_STRING_free(ip1); in test_addr_fam_len()
428 ASN1_OCTET_STRING *ip1[3] = { NULL, NULL }; in test_addr_subset() local
435 || !TEST_ptr(ip1[i] = a2i_IPADDRESS(ranges[i].ip1)) in test_addr_subset()
438 ip1[i]->data, ip2[i]->data))) in test_addr_subset()
458 ASN1_OCTET_STRING_free(ip1[i]); in test_addr_subset()