Mercurial > hg > nginx
diff src/event/ngx_event_quic_protection.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 | f85749b60e58 |
children | 2ac03e80d013 |
line wrap: on
line diff
--- a/src/event/ngx_event_quic_protection.h Thu Mar 26 13:54:49 2020 +0300 +++ b/src/event/ngx_event_quic_protection.h Thu Mar 26 16:54:46 2020 +0300 @@ -39,8 +39,7 @@ ssize_t ngx_quic_encrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn, ngx_str_t *res); -ngx_int_t ngx_quic_decrypt(ngx_pool_t *pool, ngx_ssl_conn_t *ssl_conn, - ngx_quic_header_t *pkt); +ngx_int_t ngx_quic_decrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn); #endif /* _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_ */