Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 56) sorted by relevance

123

/curl/lib/
H A Dmd4.c212 mbedtls_md4(ctx->data, ctx->size, result); in MD4_Final()
214 (void) mbedtls_md4_ret(ctx->data, ctx->size, result); in MD4_Final()
449 my_md4_body(ctx, ctx->buffer, 64); in MD4_Update()
472 my_md4_body(ctx, ctx->buffer, 64); in MD4_Final()
480 ctx->buffer[56] = curlx_ultouc((ctx->lo)&0xff); in MD4_Final()
481 ctx->buffer[57] = curlx_ultouc((ctx->lo >> 8)&0xff); in MD4_Final()
484 ctx->buffer[60] = curlx_ultouc((ctx->hi)&0xff); in MD4_Final()
485 ctx->buffer[61] = curlx_ultouc((ctx->hi >> 8)&0xff); in MD4_Final()
487 ctx->buffer[63] = curlx_ultouc(ctx->hi >> 24); in MD4_Final()
489 my_md4_body(ctx, ctx->buffer, 64); in MD4_Final()
[all …]
H A Dmd5.c360 a = ctx->a; in my_md5_body()
501 my_md5_body(ctx, ctx->buffer, 64); in my_md5_update()
525 my_md5_body(ctx, ctx->buffer, 64); in my_md5_final()
533 ctx->buffer[56] = curlx_ultouc((ctx->lo)&0xff); in my_md5_final()
534 ctx->buffer[57] = curlx_ultouc((ctx->lo >> 8)&0xff); in my_md5_final()
536 ctx->buffer[59] = curlx_ultouc(ctx->lo >> 24); in my_md5_final()
537 ctx->buffer[60] = curlx_ultouc((ctx->hi)&0xff); in my_md5_final()
538 ctx->buffer[61] = curlx_ultouc((ctx->hi >> 8)&0xff); in my_md5_final()
540 ctx->buffer[63] = curlx_ultouc(ctx->hi >> 24); in my_md5_final()
542 my_md5_body(ctx, ctx->buffer, 64); in my_md5_final()
[all …]
H A Dcf-haproxy.c55 DEBUGASSERT(ctx); in cf_haproxy_ctx_reset()
62 if(ctx) { in cf_haproxy_ctx_free()
64 free(ctx); in cf_haproxy_ctx_free()
71 struct cf_haproxy_ctx *ctx = cf->ctx; in cf_haproxy_date_out_set() local
77 DEBUGASSERT(ctx); in cf_haproxy_date_out_set()
110 struct cf_haproxy_ctx *ctx = cf->ctx; in cf_haproxy_connect() local
114 DEBUGASSERT(ctx); in cf_haproxy_connect()
124 switch(ctx->state) { in cf_haproxy_connect()
219 ctx = calloc(1, sizeof(*ctx)); in cf_haproxy_create()
220 if(!ctx) { in cf_haproxy_create()
[all …]
H A Dcf-socket.c966 memset(ctx, 0, sizeof(*ctx)); in cf_socket_ctx_init()
1002 struct cf_socket_ctx *ctx = cf->ctx; in cf_socket_close() local
1044 struct cf_socket_ctx *ctx = cf->ctx; in cf_socket_destroy() local
1055 struct cf_socket_ctx *ctx = cf->ctx; in set_local_ip() local
1803 ctx = calloc(1, sizeof(*ctx)); in Curl_cf_tcp_create()
1844 ctx->sock, ctx->ip.local_ip, ctx->ip.local_port, in cf_udp_setup_quic()
1907 ctx->sock, ctx->ip.local_ip, ctx->ip.local_port); in cf_udp_connect()
1952 ctx = calloc(1, sizeof(*ctx)); in Curl_cf_udp_create()
2004 ctx = calloc(1, sizeof(*ctx)); in Curl_cf_unix_create()
2166 ctx->sock, ctx->ip.remote_ip, ctx->ip.remote_port); in cf_tcp_accept_connect()
[all …]
H A Dcf-https-connect.c131 struct cf_hc_ctx *ctx = cf->ctx; in cf_hc_baller_init() local
159 struct cf_hc_ctx *ctx = cf->ctx; in cf_hc_reset() local
175 struct cf_hc_ctx *ctx = cf->ctx; in baller_connected() local
225 struct cf_hc_ctx *ctx = cf->ctx; in time_to_start_h21() local
259 struct cf_hc_ctx *ctx = cf->ctx; in cf_hc_connect() local
346 struct cf_hc_ctx *ctx = cf->ctx; in cf_hc_shutdown() local
410 struct cf_hc_ctx *ctx = cf->ctx; in cf_hc_data_pending() local
424 struct cf_hc_ctx *ctx = cf->ctx; in cf_get_max_baller_time() local
448 struct cf_hc_ctx *ctx = cf->ctx; in cf_hc_query() local
483 struct cf_hc_ctx *ctx = cf->ctx; in cf_hc_cntrl() local
[all …]
H A Dcw-out.c128 struct cw_out_ctx *ctx = writer->ctx; in cw_out_init() local
130 ctx->buf = NULL; in cw_out_init()
136 while(ctx->buf) { in cw_out_bufs_free()
156 struct cw_out_ctx *ctx = writer->ctx; in cw_out_close() local
207 if(ctx->errored) in cw_out_ptr_flush()
300 if(ctx->paused) in cw_out_flush_chain()
345 DEBUGASSERT(ctx->buf && (ctx->buf->type == otype)); in cw_out_append()
359 if(ctx->buf && ctx->buf->type != otype) { in cw_out_do_write()
360 result = cw_out_flush_chain(ctx, data, &ctx->buf, TRUE); in cw_out_do_write()
365 if(ctx->buf) { in cw_out_do_write()
[all …]
H A Dcf-h2-proxy.c204 memset(ctx, 0, sizeof(*ctx)); in cf_h2_proxy_ctx_clear()
220 struct cf_h2_proxy_ctx *ctx = cf->ctx; in drain_tunnel() local
278 struct cf_h2_proxy_ctx *ctx = cf->ctx; in proxy_h2_client_new() local
329 struct cf_h2_proxy_ctx *ctx = cf->ctx; in cf_h2_proxy_ctx_init() local
416 struct cf_h2_proxy_ctx *ctx = cf->ctx; in proxy_h2_nw_out_flush() local
447 struct cf_h2_proxy_ctx *ctx = cf->ctx; in proxy_h2_process_pending_input() local
480 struct cf_h2_proxy_ctx *ctx = cf->ctx; in proxy_h2_progress_ingress() local
528 struct cf_h2_proxy_ctx *ctx = cf->ctx; in proxy_h2_progress_egress() local
548 struct cf_h2_proxy_ctx *ctx = cf->ctx; in on_session_send() local
669 struct cf_h2_proxy_ctx *ctx = cf->ctx; in proxy_h2_on_frame_recv() local
[all …]
H A Dsha256.c109 if(!ctx->openssl_ctx) in my_sha256_init()
140 sha256_init(ctx); in my_sha256_init()
195 (void) CC_SHA256_Init(ctx); in my_sha256_init()
230 if(!CryptCreateHash(ctx->hCryptProv, CALG_SHA_256, 0, 0, &ctx->hHash)) { in my_sha256_init()
232 ctx->hCryptProv = 0; in my_sha256_init()
256 if(ctx->hHash) in my_sha256_final()
257 CryptDestroyHash(ctx->hHash); in my_sha256_final()
259 if(ctx->hCryptProv) in my_sha256_final()
459 struct sha256_state *md = ctx; in my_sha256_final()
516 my_sha256_ctx ctx; in Curl_sha256it() local
[all …]
H A Dcurl_sha512_256.c122 if(!*ctx) in Curl_sha512_256_init()
135 EVP_MD_CTX_destroy(*ctx); in Curl_sha512_256_init()
191 EVP_MD_CTX_destroy(*ctx); in Curl_sha512_256_finish()
192 *ctx = NULL; in Curl_sha512_256_finish()
221 sha512_256_init(ctx); in Curl_sha512_256_init()
264 sha512_256_digest(ctx, in Curl_sha512_256_finish()
648 ctx->count += length; in MHDx_sha512_256_update()
651 ctx->count_bits_hi += ctx->count >> 61; in MHDx_sha512_256_update()
664 MHDx_sha512_256_transform(ctx->H, ctx->buffer); in MHDx_sha512_256_update()
745 MHDx_sha512_256_transform(ctx->H, ctx->buffer); in MHDx_sha512_256_finish()
[all …]
H A Dhttp2.c175 if(ctx && ctx->initialized) { in cf_h2_ctx_free()
182 memset(ctx, 0, sizeof(*ctx)); in cf_h2_ctx_free()
298 struct cf_h2_ctx *ctx = cf->ctx; in cf_h2_update_local_win() local
375 struct cf_h2_ctx *ctx = cf->ctx; in http2_data_setup() local
401 struct cf_h2_ctx *ctx = cf->ctx; in http2_data_done() local
434 struct cf_h2_ctx *ctx = cf->ctx; in h2_client_new() local
510 struct cf_h2_ctx *ctx = cf->ctx; in cf_h2_ctx_open() local
640 struct cf_h2_ctx *ctx = cf->ctx; in h2_process_pending_input() local
686 struct cf_h2_ctx *ctx = cf->ctx; in http2_connisalive() local
724 struct cf_h2_ctx *ctx = cf->ctx; in http2_send_ping() local
[all …]
H A Dsendf.c639 struct cr_in_ctx *ctx = reader->ctx; in cr_in_init() local
654 struct cr_in_ctx *ctx = reader->ctx; in cr_in_read() local
688 if((ctx->total_len >= 0) && (ctx->read_len < ctx->total_len)) { in cr_in_read()
735 ctx->seen_eos = (ctx->read_len >= ctx->total_len); in cr_in_read()
750 struct cr_in_ctx *ctx = reader->ctx; in cr_in_needs_rewind() local
758 struct cr_in_ctx *ctx = reader->ctx; in cr_in_total_length() local
767 struct cr_in_ctx *ctx = reader->ctx; in cr_in_resume_from() local
829 struct cr_in_ctx *ctx = reader->ctx; in cr_in_rewind() local
883 struct cr_in_ctx *ctx = reader->ctx; in cr_in_unpause() local
1132 ctx = r->ctx; in Curl_creader_set_fread()
[all …]
H A Dconnect.c475 struct cf_he_ctx *ctx = cf->ctx; in baller_initiate() local
607 struct cf_he_ctx *ctx = cf->ctx; in is_connected() local
769 struct cf_he_ctx *ctx = cf->ctx; in start_connect() local
860 struct cf_he_ctx *ctx = cf->ctx; in cf_he_ctx_clear() local
876 struct cf_he_ctx *ctx = cf->ctx; in cf_he_shutdown() local
917 struct cf_he_ctx *ctx = cf->ctx; in cf_he_adjust_pollset() local
935 struct cf_he_ctx *ctx = cf->ctx; in cf_he_connect() local
996 struct cf_he_ctx *ctx = cf->ctx; in cf_he_close() local
1012 struct cf_he_ctx *ctx = cf->ctx; in cf_he_data_pending() local
1152 ctx = calloc(1, sizeof(*ctx)); in cf_happy_eyeballs_create()
[all …]
H A Dhttp_chunks.c407 struct chunked_writer *ctx = writer->ctx; in cw_chunked_init() local
417 struct chunked_writer *ctx = writer->ctx; in cw_chunked_close() local
425 struct chunked_writer *ctx = writer->ctx; in cw_chunked_write() local
487 struct chunked_reader *ctx = reader->ctx; in cr_chunked_init() local
496 struct chunked_reader *ctx = reader->ctx; in cr_chunked_close() local
504 struct chunked_reader *ctx = reader->ctx; in add_last_chunk() local
558 struct chunked_reader *ctx = reader->ctx; in add_chunk() local
613 struct chunked_reader *ctx = reader->ctx; in cr_chunked_read() local
619 if(!ctx->eos) { in cr_chunked_read()
620 if(!ctx->read_eos && Curl_bufq_is_empty(&ctx->chunkbuf)) { in cr_chunked_read()
[all …]
H A Dhttp_proxy.c171 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_connect() local
186 if(!ctx->cf_protocol) { in http_proxy_cf_connect()
262 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_destroy() local
266 free(ctx); in http_proxy_cf_destroy()
272 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_close() local
276 if(ctx->cf_protocol) { in http_proxy_cf_close()
287 ctx->cf_protocol = NULL; in http_proxy_cf_close()
321 ctx = calloc(1, sizeof(*ctx)); in Curl_cf_http_proxy_insert_after()
322 if(!ctx) { in Curl_cf_http_proxy_insert_after()
329 ctx = NULL; in Curl_cf_http_proxy_insert_after()
[all …]
/curl/lib/vquic/
H A Dvquic-tls.c95 if(!ctx->wssl.ctx) { in wssl_init_ctx()
106 wolfSSL_CTX_set_default_verify_paths(ctx->wssl.ctx); in wssl_init_ctx()
166 wolfSSL_CTX_set_default_verify_paths(ctx->wssl.ctx); in wssl_init_ctx()
188 if(result && ctx->wssl.ctx) { in wssl_init_ctx()
189 SSL_CTX_free(ctx->wssl.ctx); in wssl_init_ctx()
190 ctx->wssl.ctx = NULL; in wssl_init_ctx()
207 DEBUGASSERT(ctx->wssl.ctx); in wssl_init_ssl()
208 ctx->wssl.handle = wolfSSL_new(ctx->wssl.ctx); in wssl_init_ssl()
277 if(ctx->wssl.ctx) in Curl_vquic_tls_cleanup()
278 wolfSSL_CTX_free(ctx->wssl.ctx); in Curl_vquic_tls_cleanup()
[all …]
H A Dcurl_ngtcp2.c168 if(ctx && ctx->initialized) { in cf_ngtcp2_ctx_free()
226 struct cf_ngtcp2_ctx *ctx = cf->ctx; in h3_data_setup() local
258 struct cf_ngtcp2_ctx *ctx = cf->ctx; in cf_ngtcp2_stream_close() local
278 struct cf_ngtcp2_ctx *ctx = cf->ctx; in h3_data_done() local
294 struct cf_ngtcp2_ctx *ctx = cf->ctx; in get_stream_easy() local
324 struct cf_ngtcp2_ctx *ctx = cf->ctx; in h3_drain_stream() local
352 struct cf_ngtcp2_ctx *ctx = cf->ctx; in pktx_update_time() local
2100 if(ctx && ctx->qconn) { in cf_ngtcp2_close()
2131 ctx = cf ? cf->ctx : NULL; in quic_ossl_new_session_cb()
2309 rc = ngtcp2_conn_client_new(&ctx->qconn, &ctx->dcid, &ctx->scid, in cf_connect_start()
[all …]
H A Dcurl_quiche.c138 if(ctx && ctx->initialized) { in cf_quiche_ctx_free()
202 struct cf_quiche_ctx *ctx = cf->ctx; in check_resumes() local
222 struct cf_quiche_ctx *ctx = cf->ctx; in h3_data_setup() local
247 struct cf_quiche_ctx *ctx = cf->ctx; in h3_data_done() local
274 struct cf_quiche_ctx *ctx = cf->ctx; in h3_drain_stream() local
293 struct cf_quiche_ctx *ctx = cf->ctx; in get_stream_easy() local
345 struct cf_quiche_ctx *ctx = cf->ctx; in write_resp_raw() local
440 struct cf_quiche_ctx *ctx = cf->ctx; in cf_recv_body() local
563 struct cf_quiche_ctx *ctx = cf->ctx; in cf_poll_events() local
669 struct cf_quiche_ctx *ctx = cf->ctx; in cf_process_ingress() local
[all …]
H A Dcurl_msh3.c148 if(ctx && ctx->initialized) { in cf_msh3_ctx_free()
200 struct cf_msh3_ctx *ctx = cf->ctx; in h3_data_setup() local
226 struct cf_msh3_ctx *ctx = cf->ctx; in h3_data_done() local
254 struct cf_msh3_ctx *ctx = cf->ctx; in h3_drain_stream() local
278 struct cf_msh3_ctx *ctx = cf->ctx; in msh3_conn_connected() local
292 struct cf_msh3_ctx *ctx = cf->ctx; in msh3_conn_shutdown_complete() local
517 struct cf_msh3_ctx *ctx = cf->ctx; in recv_closed_stream() local
551 struct cf_msh3_ctx *ctx = cf->ctx; in set_quic_expire() local
569 struct cf_msh3_ctx *ctx = cf->ctx; in cf_msh3_recv() local
621 struct cf_msh3_ctx *ctx = cf->ctx; in cf_msh3_send() local
[all …]
H A Dcurl_osslq.c316 if(ctx && ctx->initialized) { in cf_osslq_ctx_free()
338 struct cf_osslq_ctx *ctx = cf->ctx; in cf_osslq_shutdown() local
408 struct cf_osslq_ctx *ctx = cf->ctx; in cf_osslq_close() local
412 if(ctx && ctx->tls.ossl.ssl) { in cf_osslq_close()
429 struct cf_osslq_ctx *ctx = cf->ctx; in cf_osslq_destroy() local
450 struct cf_osslq_ctx *ctx = cf->ctx; in cf_osslq_h3conn_add_stream() local
484 struct cf_osslq_ctx *ctx = cf->ctx; in cf_osslq_ssl_err() local
562 struct cf_osslq_ctx *ctx = cf->ctx; in cf_osslq_verify_peer() local
612 struct cf_osslq_ctx *ctx = cf->ctx; in h3_data_setup() local
647 struct cf_osslq_ctx *ctx = cf->ctx; in h3_data_done() local
[all …]
/curl/src/
H A Dtool_help.c190 memmove(&ctx->rbuf[0], &ctx->rbuf[1], ctx->tlen - 1); in helpscan()
191 ctx->rbuf[ctx->tlen - 1] = buf[i]; in helpscan()
192 if(!memcmp(ctx->rbuf, ctx->trigger, ctx->tlen)) in helpscan()
198 memmove(&ctx->rbuf[0], &ctx->rbuf[1], ctx->flen - 1); in helpscan()
199 ctx->rbuf[ctx->flen - 1] = buf[i]; in helpscan()
200 if(!memcmp(ctx->rbuf, ctx->arg, ctx->flen)) { in helpscan()
208 memmove(&ctx->rbuf[0], &ctx->rbuf[1], ctx->elen - 1); in helpscan()
209 ctx->rbuf[ctx->elen - 1] = buf[i]; in helpscan()
210 if(!memcmp(ctx->rbuf, ctx->endarg, ctx->elen)) in helpscan()
217 ctx->obuf[ctx->olen++] = 0; in helpscan()
[all …]
H A Dmkhelp.pl156 inithelpscan(&ctx, trigger, arg, endarg);
179 if(!helpscan(buf, len, &ctx))
235 inithelpscan(&ctx, trigger, arg, endarg);
238 if(!helpscan((unsigned char *)curlman[i], len, &ctx) ||
239 !helpscan((unsigned char *)"\\n", 1, &ctx))
/curl/tests/unit/
H A Dunit2600.c124 struct cf_test_ctx *ctx = cf->ctx; in cf_test_destroy() local
131 free(ctx); in cf_test_destroy()
132 cf->ctx = NULL; in cf_test_destroy()
139 struct cf_test_ctx *ctx = cf->ctx; in cf_test_connect() local
200 ctx = calloc(1, sizeof(*ctx)); in cf_test_create()
201 if(!ctx) { in cf_test_create()
207 ctx->started = Curl_now(); in cf_test_create()
212 curl_msprintf(ctx->id, "v6-%d", ctx->stats->creations); in cf_test_create()
213 ctx->stats->creations++; in cf_test_create()
220 curl_msprintf(ctx->id, "v4-%d", ctx->stats->creations); in cf_test_create()
[all …]
/curl/tests/libtest/
H A Dlib3207.c123 ctx->result = (int)res; in test_thread()
181 test_thread((void *)&ctx[i]); in execute()
192 struct Ctx ctx[THREAD_SIZE]; in test() local
203 ctx[i].share = share; in test()
204 ctx[i].URL = URL; in test()
205 ctx[i].thread_id = i; in test()
206 ctx[i].result = 0; in test()
207 ctx[i].contents = NULL; in test()
210 execute(share, ctx); in test()
213 if(ctx[i].result) { in test()
[all …]
H A Dstub_gssapi.c123 if(ctx && strcmp(ctx->creds, creds)) { in gss_init_sec_context()
132 if(!ctx) { in gss_init_sec_context()
161 switch(ctx->sent) { in gss_init_sec_context()
181 if(ctx) { in gss_init_sec_context()
186 ctx = (gss_ctx_id_t) calloc(1, sizeof(*ctx)); in gss_init_sec_context()
187 if(!ctx) { in gss_init_sec_context()
198 if(ctx->have_krb5) in gss_init_sec_context()
199 ctx->sent = KRB5; in gss_init_sec_context()
203 free(ctx); in gss_init_sec_context()
214 free(ctx); in gss_init_sec_context()
[all …]
/curl/lib/vtls/
H A Dbearssl.c56 br_ssl_client_context ctx; member
91 struct cafile_parser *ca = ctx; in append_dn()
105 struct cafile_parser *ca = ctx; in x509_push()
1019 struct ssl_connect_data *ctx = cf->ctx; in bearssl_data_pending() local
1023 DEBUGASSERT(ctx && ctx->backend); in bearssl_data_pending()
1031 static br_hmac_drbg_context ctx; in bearssl_random() local
1039 if(!seeder || !seeder(&ctx.vtable)) in bearssl_random()
1076 return &backend->ctx; in bearssl_get_internals()
1139 br_sha256_context ctx; in bearssl_sha256sum() local
1141 br_sha256_init(&ctx); in bearssl_sha256sum()
[all …]

Completed in 115 milliseconds

123