/third_party/nghttp2/fuzz/ |
H A D | fuzz_frames.cc | 13 static nghttp2_nv fuzz_make_nv(std::string s1, std::string s2) { in fuzz_make_nv() 14 nghttp2_nv nv; in fuzz_make_nv() 30 static void fuzz_free_nv(nghttp2_nv *nv) { in fuzz_free_nv() 40 nghttp2_nv *nva; in check_frame_pack_headers() 56 nva = (nghttp2_nv *)mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in check_frame_pack_headers() 78 nghttp2_nv *nva2 = NULL; in check_frame_pack_headers() 100 nghttp2_nv *nva; in check_frame_push_promise() 116 nva = (nghttp2_nv *)mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGT in check_frame_push_promise() [all...] |
/third_party/nghttp2/tests/ |
H A D | nghttp2_test_helper.h | 45 size_t alloclen = sizeof(nghttp2_nv) * len; \ 46 const nghttp2_nv *sa = A, *sb = B; \ 47 nghttp2_nv *a = mem->malloc(alloclen, NULL); \ 48 nghttp2_nv *b = mem->malloc(alloclen, NULL); \ 67 int nvnameeq(const char *a, nghttp2_nv *nv); 69 int nvvalueeq(const char *a, nghttp2_nv *nv); 72 nghttp2_nv nva[256]; 79 void add_out(nva_out *out, nghttp2_nv *nv, nghttp2_mem *mem); 85 int32_t stream_id, uint8_t flags, const nghttp2_nv *nva, 90 int32_t promised_stream_id, const nghttp2_nv *nv [all...] |
H A D | nghttp2_hd_test.c | 39 nghttp2_nv nva1[] = {MAKE_NV(":path", "/my-example/index.html"), in test_nghttp2_hd_deflate() 41 nghttp2_nv nva2[] = {MAKE_NV(":path", "/script.js"), in test_nghttp2_hd_deflate() 43 nghttp2_nv nva3[] = {MAKE_NV("cookie", "k1=v1"), MAKE_NV("cookie", "k2=v2"), in test_nghttp2_hd_deflate() 45 nghttp2_nv nva4[] = {MAKE_NV(":path", "/style.css"), in test_nghttp2_hd_deflate() 47 nghttp2_nv nva5[] = {MAKE_NV(":path", "/style.css"), in test_nghttp2_hd_deflate() 141 nghttp2_nv nva1[] = {MAKE_NV("host", "alpha"), MAKE_NV("host", "alpha")}; in test_nghttp2_hd_deflate_same_indexed_repr() 142 nghttp2_nv nva2[] = {MAKE_NV("host", "alpha"), MAKE_NV("host", "alpha"), in test_nghttp2_hd_deflate_same_indexed_repr() 195 nghttp2_nv nv = MAKE_NV(":path", "/"); in test_nghttp2_hd_inflate_indexed() 236 nghttp2_nv nv[] = {/* Huffman */ in test_nghttp2_hd_inflate_indname_noinc() 276 nghttp2_nv n in test_nghttp2_hd_inflate_indname_inc() [all...] |
H A D | nghttp2_test_helper.c | 113 int nvnameeq(const char *a, nghttp2_nv *nv) { in nvnameeq() 117 int nvvalueeq(const char *a, nghttp2_nv *nv) { in nvvalueeq() 136 void add_out(nva_out *out, nghttp2_nv *nv, nghttp2_mem *mem) { in add_out() 137 nghttp2_nv *onv = &out->nva[out->nvlen]; in add_out() 161 nghttp2_nv nv; in inflate_hd() 217 int32_t stream_id, uint8_t flags, const nghttp2_nv *nva, in pack_headers() 219 nghttp2_nv *dnva; in pack_headers() 236 int32_t promised_stream_id, const nghttp2_nv *nva, in pack_push_promise() 238 nghttp2_nv *dnva; in pack_push_promise()
|
H A D | nghttp2_frame_test.c | 37 static nghttp2_nv make_nv(const char *name, const char *value) { in make_nv() 38 nghttp2_nv nv; in make_nv() 50 static nghttp2_nv *headers(nghttp2_mem *mem) { in headers() 51 nghttp2_nv *nva = mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in headers() 76 nghttp2_nv *nva; in test_nghttp2_frame_pack_headers() 172 nghttp2_nv *nva; in test_nghttp2_frame_pack_headers_frame_too_large() 174 nghttp2_nv big_hds[16]; in test_nghttp2_frame_pack_headers_frame_too_large() 314 nghttp2_nv *nva; in test_nghttp2_frame_pack_push_promise() 630 nghttp2_nv *nv in test_nghttp2_nv_array_copy() [all...] |
H A D | failmalloc_test.c | 130 nghttp2_nv nv[] = {MAKE_NV(":host", "example.org"), in run_nghttp2_session_send() 279 nghttp2_nv nv[] = { in run_nghttp2_session_recv() 289 nghttp2_nv *nva; in run_nghttp2_session_recv() 399 nghttp2_nv nv[] = {MAKE_NV(":host", "example.org"), in run_nghttp2_frame_pack_headers() 402 nghttp2_nv *nva; in run_nghttp2_frame_pack_headers() 502 nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) { in deflate_inflate() 527 nghttp2_nv nva1[] = { in run_nghttp2_hd() 531 nghttp2_nv nva2[] = { in run_nghttp2_hd()
|
H A D | nghttp2_session_test.c | 76 nghttp2_nv nv; 84 static const nghttp2_nv reqnv[] = { 91 static const nghttp2_nv resnv[] = { 95 static const nghttp2_nv trailernv[] = { 679 nghttp2_nv *nva; in test_nghttp2_session_recv() 796 nghttp2_nv *nva; in test_nghttp2_session_recv_invalid_stream_id() 838 nghttp2_nv *nva; in test_nghttp2_session_recv_invalid_frame() 1237 nghttp2_nv *nva; in test_nghttp2_session_recv_continuation() 1432 nghttp2_nv *nva; in test_nghttp2_session_recv_headers_with_priority() 1695 nghttp2_nv *nv in test_nghttp2_session_recv_headers_early_response() [all...] |
/third_party/nghttp2/src/ |
H A D | http2.h | 135 // Creates nghttp2_nv using |name| and |value| and returns it. The 137 // value.c_str(). If |no_index| is true, nghttp2_nv flags member has 139 nghttp2_nv make_nv(const std::string &name, const std::string &value, 142 nghttp2_nv make_nv(const StringRef &name, const StringRef &value, 145 nghttp2_nv make_nv_nocopy(const std::string &name, const std::string &value, 148 nghttp2_nv make_nv_nocopy(const StringRef &name, const StringRef &value, 151 // Create nghttp2_nv from string literal |name| and |value|. 153 constexpr nghttp2_nv make_nv_ll(const char (&name)[N], const char (&value)[M]) { in make_nv_ll() 158 // Create nghttp2_nv from string literal |name| and c-string |value|. 160 nghttp2_nv make_nv_l [all...] |
H A D | comp_helper.c | 43 const nghttp2_nv *nv = nghttp2_hd_deflate_get_table_entry(deflater, i); in dump_deflate_header_table() 75 const nghttp2_nv *nv = nghttp2_hd_inflate_get_table_entry(inflater, i); in dump_inflate_header_table() 112 json_t *dump_headers(const nghttp2_nv *nva, size_t nvlen) { in dump_headers()
|
H A D | deflatehd.cc | 81 const std::vector<nghttp2_nv> &nva, int seq) { in output_to_json() 114 const std::vector<nghttp2_nv> &nva, size_t inputlen, in deflate_hd() 120 (nghttp2_nv *)nva.data(), nva.size()); in deflate_hd() 147 auto nva = std::vector<nghttp2_nv>(len); in deflate_hd_json() 247 std::vector<nghttp2_nv> nva; in perform_from_http1text()
|
H A D | comp_helper.h | 47 json_t *dump_headers(const nghttp2_nv *nva, size_t nvlen);
|
H A D | http2.cc | 319 nghttp2_nv make_nv_internal(const std::string &name, const std::string &value, in make_nv_internal() 332 nghttp2_nv make_nv_internal(const StringRef &name, const StringRef &value, in make_nv_internal() 344 nghttp2_nv make_nv(const std::string &name, const std::string &value, in make_nv() 349 nghttp2_nv make_nv(const StringRef &name, const StringRef &value, in make_nv() 354 nghttp2_nv make_nv_nocopy(const std::string &name, const std::string &value, in make_nv_nocopy() 361 nghttp2_nv make_nv_nocopy(const StringRef &name, const StringRef &value, in make_nv_nocopy() 369 void copy_headers_to_nva_internal(std::vector<nghttp2_nv> &nva, in copy_headers_to_nva_internal() 468 void copy_headers_to_nva(std::vector<nghttp2_nv> &nva, in copy_headers_to_nva() 473 void copy_headers_to_nva_nocopy(std::vector<nghttp2_nv> &nva, in copy_headers_to_nva_nocopy() 601 void dump_nv(FILE *out, const nghttp2_nv *nv [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_frame.h | 436 nghttp2_nv *nva, size_t nvlen); 457 nghttp2_nv *nva, size_t nvlen); 587 void nghttp2_nv_array_sort(nghttp2_nv *nva, size_t nvlen); 592 * be stored. The resultant name and value in nghttp2_nv are 604 int nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva, 612 int nghttp2_nv_equal(const nghttp2_nv *a, const nghttp2_nv *b); 617 void nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem);
|
H A D | nghttp2_hd.h | 140 nghttp2_nv cnv; 154 nghttp2_nv cnv; 335 nghttp2_bufs *bufs, const nghttp2_nv *nva, 356 * instead of nghttp2_nv as output parameter |nv_out|. Other than 366 nghttp2_nv *nv, int indexing_mode); 369 int nghttp2_hd_emit_newname_block(nghttp2_bufs *bufs, nghttp2_nv *nv,
|
H A D | nghttp2_frame.c | 65 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_headers_init() 116 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_push_promise_init() 960 int nghttp2_nv_equal(const nghttp2_nv *a, const nghttp2_nv *b) { in nghttp2_nv_equal() 982 void nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem) { in nghttp2_nv_array_del() 1013 int nghttp2_nv_compare_name(const nghttp2_nv *lhs, const nghttp2_nv *rhs) { in nghttp2_nv_compare_name() 1018 const nghttp2_nv *a = (const nghttp2_nv *)lhs; in nv_compar() 1019 const nghttp2_nv * in nv_compar() [all...] |
H A D | nghttp2_submit.c | 70 nghttp2_nv *nva_copy, size_t nvlen, in submit_headers_shared() 145 const nghttp2_nv *nva, size_t nvlen, in submit_headers_shared_nva() 149 nghttp2_nv *nva_copy; in submit_headers_shared_nva() 172 const nghttp2_nv *nva, size_t nvlen) { in nghttp2_submit_trailer() 185 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_headers() 316 int32_t stream_id, const nghttp2_nv *nva, in nghttp2_submit_push_promise() 321 nghttp2_nv *nva_copy; in nghttp2_submit_push_promise() 758 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_request() 793 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_response()
|
H A D | nghttp2_hd.c | 506 static int name_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) { in name_eq() 511 static int value_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) { in value_eq() 516 static uint32_t name_hash(const nghttp2_nv *nv) { in name_hash() 549 const nghttp2_nv *nv, int32_t token, in hd_map_find() 1033 const nghttp2_nv *nv, int indexing_mode) { in emit_indname_block() 1074 static int emit_newname_block(nghttp2_bufs *bufs, const nghttp2_nv *nv, in emit_newname_block() 1172 static search_result search_static_table(const nghttp2_nv *nv, int32_t token, in search_static_table() 1197 const nghttp2_nv *nv, int32_t token, in search_hd_table() 1315 static const nghttp2_nv *nghttp2_hd_table_get2(nghttp2_hd_context *context, in nghttp2_hd_table_get2() 1328 const nghttp2_nv *n in hd_deflate_decide_indexing() [all...] |
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_frame.h | 436 nghttp2_nv *nva, size_t nvlen); 457 nghttp2_nv *nva, size_t nvlen); 587 void nghttp2_nv_array_sort(nghttp2_nv *nva, size_t nvlen); 592 * be stored. The resultant name and value in nghttp2_nv are 604 int nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva, 612 int nghttp2_nv_equal(const nghttp2_nv *a, const nghttp2_nv *b); 617 void nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem);
|
H A D | nghttp2_hd.h | 140 nghttp2_nv cnv; 154 nghttp2_nv cnv; 335 nghttp2_bufs *bufs, const nghttp2_nv *nva, 356 * instead of nghttp2_nv as output parameter |nv_out|. Other than 366 nghttp2_nv *nv, int indexing_mode); 369 int nghttp2_hd_emit_newname_block(nghttp2_bufs *bufs, nghttp2_nv *nv,
|
H A D | nghttp2_frame.c | 65 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_headers_init() 116 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_push_promise_init() 960 int nghttp2_nv_equal(const nghttp2_nv *a, const nghttp2_nv *b) { in nghttp2_nv_equal() 982 void nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem) { in nghttp2_nv_array_del() 1013 int nghttp2_nv_compare_name(const nghttp2_nv *lhs, const nghttp2_nv *rhs) { in nghttp2_nv_compare_name() 1018 const nghttp2_nv *a = (const nghttp2_nv *)lhs; in nv_compar() 1019 const nghttp2_nv * in nv_compar() [all...] |
H A D | nghttp2_submit.c | 70 nghttp2_nv *nva_copy, size_t nvlen, in submit_headers_shared() 145 const nghttp2_nv *nva, size_t nvlen, in submit_headers_shared_nva() 149 nghttp2_nv *nva_copy; in submit_headers_shared_nva() 172 const nghttp2_nv *nva, size_t nvlen) { in nghttp2_submit_trailer() 185 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_headers() 316 int32_t stream_id, const nghttp2_nv *nva, in nghttp2_submit_push_promise() 321 nghttp2_nv *nva_copy; in nghttp2_submit_push_promise() 758 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_request() 793 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_response()
|
H A D | nghttp2_hd.c | 506 static int name_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) { in name_eq() 511 static int value_eq(const nghttp2_hd_nv *a, const nghttp2_nv *b) { in value_eq() 516 static uint32_t name_hash(const nghttp2_nv *nv) { in name_hash() 549 const nghttp2_nv *nv, int32_t token, in hd_map_find() 1033 const nghttp2_nv *nv, int indexing_mode) { in emit_indname_block() 1074 static int emit_newname_block(nghttp2_bufs *bufs, const nghttp2_nv *nv, in emit_newname_block() 1172 static search_result search_static_table(const nghttp2_nv *nv, int32_t token, in search_static_table() 1197 const nghttp2_nv *nv, int32_t token, in search_hd_table() 1315 static const nghttp2_nv *nghttp2_hd_table_get2(nghttp2_hd_context *context, in nghttp2_hd_table_get2() 1328 const nghttp2_nv *n in hd_deflate_decide_indexing() [all...] |
/third_party/nghttp2/lib/includes/nghttp2/ |
H A D | nghttp2.h | 583 } nghttp2_nv; typedef 1056 nghttp2_nv *nva; 1153 nghttp2_nv *nva; 3925 * The |nva| is an array of name/value pair :type:`nghttp2_nv` with 3986 const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd, 3995 * The |nva| is an array of name/value pair :type:`nghttp2_nv` with 4055 const nghttp2_nv *nva, size_t nvlen, 4063 * The |nva| is an array of name/value pair :type:`nghttp2_nv` with 4111 const nghttp2_nv *nva, size_t nvlen); 4150 * The |nva| is an array of name/value pair :type:`nghttp2_nv` wit [all...] |
/third_party/node/deps/nghttp2/lib/includes/nghttp2/ |
H A D | nghttp2.h | 578 } nghttp2_nv; typedef 1051 nghttp2_nv *nva; 1148 nghttp2_nv *nva; 3909 * The |nva| is an array of name/value pair :type:`nghttp2_nv` with 3970 const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd, 3979 * The |nva| is an array of name/value pair :type:`nghttp2_nv` with 4039 const nghttp2_nv *nva, size_t nvlen, 4047 * The |nva| is an array of name/value pair :type:`nghttp2_nv` with 4095 const nghttp2_nv *nva, size_t nvlen); 4134 * The |nva| is an array of name/value pair :type:`nghttp2_nv` wit [all...] |
/third_party/nghttp2/examples/ |
H A D | deflate.c | 41 nghttp2_hd_inflater *inflater, const nghttp2_nv *const nva, 52 nghttp2_nv nva1[] = { in main() 57 nghttp2_nv nva2[] = {MAKE_NV(":scheme", "https"), in main() 94 nghttp2_hd_inflater *inflater, const nghttp2_nv *const nva, in deflate() 172 nghttp2_nv nv; in inflate_header_block()
|