Home
last modified time | relevance | path

Searched refs:dbuf (Results 1 – 8 of 8) sorted by relevance

/curl/tests/unit/
H A Dunit2602.c44 struct dynbuf dbuf; variable
112 Curl_dyn_init(&dbuf, 32*1024);
114 if(Curl_dyn_ptr(&dbuf)) {
115 fail_if(strcmp(Curl_dyn_ptr(&dbuf),
119 Curl_dyn_free(&dbuf);
136 Curl_dyn_init(&dbuf, 32*1024);
137 fail_if(Curl_dynhds_h1_dprint(&hds, &dbuf), "h1 print failed");
138 if(Curl_dyn_ptr(&dbuf)) {
139 fprintf(stderr, "indent concat: %s\n", Curl_dyn_ptr(&dbuf));
140 fail_if(strcmp(Curl_dyn_ptr(&dbuf),
[all …]
H A Dunit1656.c80 static bool do_test(struct test_spec *spec, size_t i, struct dynbuf *dbuf) in do_test() argument
85 Curl_dyn_reset(dbuf); in do_test()
86 result = Curl_x509_GTime2str(dbuf, in, in + strlen(in)); in do_test()
92 else if(!result && strcmp(spec->exp_output, Curl_dyn_ptr(dbuf))) { in do_test()
94 i, in, spec->exp_output, Curl_dyn_ptr(dbuf)); in do_test()
104 struct dynbuf dbuf; variable
107 Curl_dyn_init(&dbuf, 32*1024);
115 if(!do_test(&test_specs[i], i, &dbuf))
120 Curl_dyn_free(&dbuf);
/curl/lib/
H A Dhttp1.h57 struct dynbuf *dbuf);
60 struct dynbuf *dbuf);
H A Dsocks_gssapi.c61 struct dynbuf dbuf; in check_gss_err() local
63 Curl_dyn_init(&dbuf, MAX_GSS_LEN); in check_gss_err()
72 if(Curl_dyn_addn(&dbuf, status_string.value, in check_gss_err()
80 if(Curl_dyn_addn(&dbuf, ".\n", 2)) in check_gss_err()
90 if(Curl_dyn_addn(&dbuf, status_string.value, in check_gss_err()
98 failf(data, "GSS-API error: %s failed: %s", function, Curl_dyn_ptr(&dbuf)); in check_gss_err()
99 Curl_dyn_free(&dbuf); in check_gss_err()
H A Dhttp1.c322 struct dynbuf *dbuf) in Curl_h1_req_write_head() argument
326 result = Curl_dyn_addf(dbuf, "%s %s%s%s%s HTTP/1.%d\r\n", in Curl_h1_req_write_head()
336 result = Curl_dynhds_h1_dprint(&req->headers, dbuf); in Curl_h1_req_write_head()
340 result = Curl_dyn_addn(dbuf, STRCONST("\r\n")); in Curl_h1_req_write_head()
H A Ddynhds.h176 CURLcode Curl_dynhds_h1_dprint(struct dynhds *dynhds, struct dynbuf *dbuf);
H A Ddynhds.c353 CURLcode Curl_dynhds_h1_dprint(struct dynhds *dynhds, struct dynbuf *dbuf) in Curl_dynhds_h1_dprint() argument
362 result = Curl_dyn_addf(dbuf, "%.*s: %.*s\r\n", in Curl_dynhds_h1_dprint()
H A Dhttp2.c1811 struct dynbuf dbuf; in http2_handle_stream_close() local
1815 Curl_dyn_init(&dbuf, DYN_TRAILERS); in http2_handle_stream_close()
1820 Curl_dyn_reset(&dbuf); in http2_handle_stream_close()
1821 *err = Curl_dyn_addf(&dbuf, "%.*s: %.*s\x0d\x0a", in http2_handle_stream_close()
1826 Curl_debug(data, CURLINFO_HEADER_IN, Curl_dyn_ptr(&dbuf), in http2_handle_stream_close()
1827 Curl_dyn_len(&dbuf)); in http2_handle_stream_close()
1829 Curl_dyn_ptr(&dbuf), Curl_dyn_len(&dbuf)); in http2_handle_stream_close()
1833 Curl_dyn_free(&dbuf); in http2_handle_stream_close()

Completed in 40 milliseconds