Lines Matching refs:u

209 	size_t u;  in HT_new()  local
215 for (u = 0; u < ht->num_buckets; u ++) { in HT_new()
216 ht->buckets[u] = NULL; in HT_new()
267 size_t n, n2, u; in HT_expand() local
273 for (u = 0; u < n2; u ++) { in HT_expand()
274 new_buckets[u] = NULL; in HT_expand()
276 for (u = 0; u < n; u ++) { in HT_expand()
280 for (e = ht->buckets[u]; e != NULL; e = f) { in HT_expand()
367 size_t u; in HT_clear() local
369 for (u = 0; u < ht->num_buckets; u ++) { in HT_clear()
373 for (e = ht->buckets[u]; e != NULL; e = f) { in HT_clear()
381 ht->buckets[u] = NULL; in HT_clear()
762 size_t u; in conf_next_line() local
764 u = SB_length(line_builder); in conf_next_line()
765 if (u == 0 || !is_ws( in conf_next_line()
766 SB_contents(line_builder)[u - 1])) in conf_next_line()
770 SB_set_length(line_builder, u - 1); in conf_next_line()
793 size_t u, v, w, len; in parse_header_name() local
800 u = 1; in parse_header_name()
802 while (u < v && is_ws(buf[u])) { in parse_header_name()
803 u ++; in parse_header_name()
805 while (u < v && is_ws(buf[v - 1])) { in parse_header_name()
808 if (u == v) { in parse_header_name()
811 for (w = u; w < v; w ++) { in parse_header_name()
816 len = v - u; in parse_header_name()
818 memcpy(name, buf + u, len); in parse_header_name()
832 size_t u, len; in parse_keyvalue() local
836 for (u = 0; u < len; u ++) { in parse_keyvalue()
837 if (!is_name_char(buf[u])) { in parse_keyvalue()
841 if (u == 0) { in parse_keyvalue()
844 name = xmalloc(u + 1); in parse_keyvalue()
845 memcpy(name, buf, u); in parse_keyvalue()
846 name[u] = 0; in parse_keyvalue()
851 while (u < len && is_ws(buf[u])) { in parse_keyvalue()
852 u ++; in parse_keyvalue()
854 if (u >= len || buf[u] != '=') { in parse_keyvalue()
858 u ++; in parse_keyvalue()
859 while (u < len && is_ws(buf[u])) { in parse_keyvalue()
860 u ++; in parse_keyvalue()
862 value = xmalloc(len - u + 1); in parse_keyvalue()
863 memcpy(value, buf + u, len - u); in parse_keyvalue()
864 value[len - u] = 0; in parse_keyvalue()
944 size_t u; in free_test_case_contents() local
947 for (u = 0; tc->ta_names[u]; u ++) { in free_test_case_contents()
948 xfree(tc->ta_names[u]); in free_test_case_contents()
951 for (u = 0; tc->cert_names[u]; u ++) { in free_test_case_contents()
952 xfree(tc->cert_names[u]); in free_test_case_contents()
981 size_t u, ptr; in parse_hex() local
987 for (u = 0; value[u]; u ++) { in parse_hex()
990 c = value[u]; in parse_hex()
1039 size_t u, ptr; in split_names() local
1042 u = 0; in split_names()
1043 while (u < len) { in split_names()
1046 while (u < len && is_ws(value[u])) { in split_names()
1047 u ++; in split_names()
1049 v = u; in split_names()
1053 if (v > u) { in split_names()
1057 name = xmalloc(v - u + 1); in split_names()
1058 memcpy(name, value + u, v - u); in split_names()
1059 name[v - u] = 0; in split_names()
1064 u = v; in split_names()
1079 size_t u, v; in string_to_hash() local
1081 for (u = 0, v = 0; name[u]; u ++) { in string_to_hash()
1084 c = name[u]; in string_to_hash()
1117 size_t u, v; in string_to_curve() local
1119 for (u = 0, v = 0; name[u]; u ++) { in string_to_curve()
1122 c = name[u]; in string_to_curve()
1263 size_t u; in parse_object() local
1267 for (u = 0;; u ++) { in parse_object()
1271 hn = hns[u]; in parse_object()
1462 size_t u; in run_test_case() local
1482 for (u = 0; hash_impls[u].id; u ++) { in run_test_case()
1483 if ((tc->hashes & ((unsigned)1 << (hash_impls[u].id))) != 0) { in run_test_case()
1484 dnhash = hash_impls[u].impl; in run_test_case()
1493 for (u = 0; tc->ta_names[u]; u ++) { in run_test_case()
1497 tta = HT_get(trust_anchors, tc->ta_names[u]); in run_test_case()
1500 tc->ta_names[u]); in run_test_case()
1509 anchors[u].dn.data = tta->dn; in run_test_case()
1510 anchors[u].dn.len = tta->dn_len; in run_test_case()
1511 anchors[u].flags = tta->flags; in run_test_case()
1512 anchors[u].pkey = *tak; in run_test_case()
1520 for (u = 0; u < num_certs; u ++) { in run_test_case()
1521 certs[u].data = read_file(tc->cert_names[u], &certs[u].len); in run_test_case()
1546 for (u = 0; hash_impls[u].id; u ++) { in run_test_case()
1549 id = hash_impls[u].id; in run_test_case()
1552 id, hash_impls[u].impl); in run_test_case()
1572 for (u = 0; u < (sizeof ctx.dp_stack) / sizeof(uint32_t); in run_test_case()
1573 u ++) in run_test_case()
1575 ctx.dp_stack[u] = 0xA7C083FE; in run_test_case()
1577 for (u = 0; u < (sizeof ctx.rp_stack) / sizeof(uint32_t); in run_test_case()
1578 u ++) in run_test_case()
1580 ctx.rp_stack[u] = 0xA7C083FE; in run_test_case()
1588 for (u = 0; u < num_certs; u ++) { in run_test_case()
1591 ctx.vtable->start_cert(&ctx.vtable, certs[u].len); in run_test_case()
1593 while (v < certs[u].len) { in run_test_case()
1596 w = certs[u].len - v; in run_test_case()
1601 certs[u].data + v, w); in run_test_case()
1644 for (u = (sizeof ctx.dp_stack) / sizeof(uint32_t); in run_test_case()
1645 u > 0; u --) in run_test_case()
1647 if (ctx.dp_stack[u - 1] != 0xA7C083FE) { in run_test_case()
1648 if (max_dp_usage < u) { in run_test_case()
1649 max_dp_usage = u; in run_test_case()
1654 for (u = (sizeof ctx.rp_stack) / sizeof(uint32_t); in run_test_case()
1655 u > 0; u --) in run_test_case()
1657 if (ctx.rp_stack[u - 1] != 0xA7C083FE) { in run_test_case()
1658 if (max_rp_usage < u) { in run_test_case()
1659 max_rp_usage = u; in run_test_case()
1669 for (u = 0; u < num_certs; u ++) { in run_test_case()
1670 xfree(certs[u].data); in run_test_case()
1826 size_t u; in free_name_elements() local
1828 for (u = 0; u < num; u ++) { in free_name_elements()
1829 xfree((void *)elts[u].oid); in free_name_elements()
1830 xfree(elts[u].buf); in free_name_elements()
1842 size_t u; in test_name_extraction() local
1852 for (u = 0; hash_impls[u].id; u ++) { in test_name_extraction()
1855 id = hash_impls[u].id; in test_name_extraction()
1856 br_x509_minimal_set_hash(&ctx, id, hash_impls[u].impl); in test_name_extraction()
1866 for (u = 0; u < num_names; u ++) { in test_name_extraction()
1870 num = names_ref[u].num; in test_name_extraction()
1898 names[u].oid = oid; in test_name_extraction()
1899 names[u].buf = xmalloc(256); in test_name_extraction()
1900 names[u].len = 256; in test_name_extraction()
1907 for (u = 0; u < (sizeof ctx.dp_stack) / sizeof(uint32_t); u ++) { in test_name_extraction()
1908 ctx.dp_stack[u] = 0xA7C083FE; in test_name_extraction()
1910 for (u = 0; u < (sizeof ctx.rp_stack) / sizeof(uint32_t); u ++) { in test_name_extraction()
1911 ctx.rp_stack[u] = 0xA7C083FE; in test_name_extraction()
1931 for (u = (sizeof ctx.dp_stack) / sizeof(uint32_t); u > 0; u --) { in test_name_extraction()
1932 if (ctx.dp_stack[u - 1] != 0xA7C083FE) { in test_name_extraction()
1933 if (max_dp_usage < u) { in test_name_extraction()
1934 max_dp_usage = u; in test_name_extraction()
1939 for (u = (sizeof ctx.rp_stack) / sizeof(uint32_t); u > 0; u --) { in test_name_extraction()
1940 if (ctx.rp_stack[u - 1] != 0xA7C083FE) { in test_name_extraction()
1941 if (max_rp_usage < u) { in test_name_extraction()
1942 max_rp_usage = u; in test_name_extraction()
1949 for (u = 0; u < num_names; u ++) { in test_name_extraction()
1950 if (names[u].status != names_ref[u].status) { in test_name_extraction()
1952 (unsigned)u, names_ref[u].num, in test_name_extraction()
1953 names[u].status, names_ref[u].status); in test_name_extraction()
1954 if (names[u].status > 0) { in test_name_extraction()
1958 p = (unsigned char *)names[u].buf; in test_name_extraction()
1967 if (names_ref[u].expected == NULL) { in test_name_extraction()
1968 if (names[u].buf[0] != 0) { in test_name_extraction()
1970 (unsigned)u); in test_name_extraction()
1975 if (strcmp(names[u].buf, names_ref[u].expected) != 0) { in test_name_extraction()
1979 (unsigned)u, names_ref[u].num); in test_name_extraction()
1981 p = (unsigned char *)names_ref[u].expected; in test_name_extraction()
1987 p = (unsigned char *)names[u].buf; in test_name_extraction()
2023 size_t u; in main() local
2078 for (u = 0; u < all_chains_ptr; u ++) { in main()
2079 run_test_case(&all_chains[u]); in main()
2088 for (u = 0; u < all_chains_ptr; u ++) { in main()
2089 free_test_case_contents(&all_chains[u]); in main()