comparison src/event/ngx_event_quic_transport.h @ 8288:ebd5c71b9f02 quic

Got rid of memory allocation in decryption. Static buffers are used instead in functions where decryption takes place. The pkt->plaintext points to the beginning of a static buffer. The pkt->payload.data points to decrypted data actual start.
author Vladimir Homutov <vl@nginx.com>
date Thu, 26 Mar 2020 16:54:46 +0300
parents c7185bc5b4d9
children 64527245dbfe
comparison
equal deleted inserted replaced
8287:ccb9cc95ad5e 8288:ebd5c71b9f02
247 247
248 /* cleartext fields */ 248 /* cleartext fields */
249 ngx_str_t dcid; 249 ngx_str_t dcid;
250 ngx_str_t scid; 250 ngx_str_t scid;
251 uint64_t pn; 251 uint64_t pn;
252 ngx_str_t payload; /* decrypted */ 252 u_char *plaintext;
253 ngx_str_t payload; /* decrypted data */
253 } ngx_quic_header_t; 254 } ngx_quic_header_t;
254 255
255 256
256 u_char *ngx_quic_error_text(uint64_t error_code); 257 u_char *ngx_quic_error_text(uint64_t error_code);
257 258