summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2020-03-26 12:11:50 +0300
committerVladimir Homutov <vl@nginx.com>2020-03-26 12:11:50 +0300
commit715d8a250b58c10d87fa44b63367a30ae0bf47c9 (patch)
treed1c5487202cb416d6a717a6aeb0de03cdc6107ec /src/http/ngx_http_request.c
parentbcd54c26431cca5322c2413e88cbbf3097230ea4 (diff)
downloadnginx-715d8a250b58c10d87fa44b63367a30ae0bf47c9.tar.gz
nginx-715d8a250b58c10d87fa44b63367a30ae0bf47c9.tar.bz2
Removed memory allocations from encryption code.
+ ngx_quic_encrypt(): - no longer accepts pool as argument - pkt is 1st arg - payload is passed as pkt->payload - performs encryption to the specified static buffer + ngx_quic_create_long/short_packet() functions: - single buffer for everything, allocated by caller - buffer layout is: [ ad | payload | TAG ] the result is in the beginning of buffer with proper length - nonce is calculated on stack - log is passed explicitly, pkt is 1st arg - no more allocations inside + ngx_quic_create_long_header(): - args changed: no need to pass str_t + added ngx_quic_create_short_header()
Diffstat (limited to 'src/http/ngx_http_request.c')
0 files changed, 0 insertions, 0 deletions