comparison src/event/quic/ngx_event_quic_ssl.c @ 8948:19e063e955bf quic

QUIC: renamed buffer-related functions. ngx_quic_alloc_buf() -> ngx_quic_alloc_chain(), ngx_quic_free_bufs() -> ngx_quic_free_chain(), ngx_quic_trim_bufs() -> ngx_quic_trim_chain()
author Roman Arutyunyan <arut@nginx.com>
date Thu, 16 Dec 2021 17:06:35 +0300
parents 6ccf3867959a
children 3789f4a56d65
comparison
equal deleted inserted replaced
8947:6ccf3867959a 8948:19e063e955bf
377 } 377 }
378 378
379 return NGX_OK; 379 return NGX_OK;
380 } 380 }
381 381
382 ngx_quic_trim_bufs(frame->data, ctx->crypto_received - f->offset); 382 ngx_quic_trim_chain(frame->data, ctx->crypto_received - f->offset);
383 383
384 if (ngx_quic_crypto_input(c, frame->data) != NGX_OK) { 384 if (ngx_quic_crypto_input(c, frame->data) != NGX_OK) {
385 return NGX_ERROR; 385 return NGX_ERROR;
386 } 386 }
387 387
388 ngx_quic_trim_bufs(ctx->crypto, last - ctx->crypto_received); 388 ngx_quic_trim_chain(ctx->crypto, last - ctx->crypto_received);
389 ctx->crypto_received = last; 389 ctx->crypto_received = last;
390 390
391 cl = ctx->crypto; 391 cl = ctx->crypto;
392 ll = &cl; 392 ll = &cl;
393 len = 0; 393 len = 0;
411 if (cl) { 411 if (cl) {
412 if (ngx_quic_crypto_input(c, cl) != NGX_OK) { 412 if (ngx_quic_crypto_input(c, cl) != NGX_OK) {
413 return NGX_ERROR; 413 return NGX_ERROR;
414 } 414 }
415 415
416 ngx_quic_free_bufs(c, cl); 416 ngx_quic_free_chain(c, cl);
417 } 417 }
418 418
419 return NGX_OK; 419 return NGX_OK;
420 } 420 }
421 421