Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
8287:ccb9cc95ad5e | 8288:ebd5c71b9f02 |
---|---|
37 ngx_quic_peer_secrets_t *qsec); | 37 ngx_quic_peer_secrets_t *qsec); |
38 | 38 |
39 ssize_t ngx_quic_encrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn, | 39 ssize_t ngx_quic_encrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn, |
40 ngx_str_t *res); | 40 ngx_str_t *res); |
41 | 41 |
42 ngx_int_t ngx_quic_decrypt(ngx_pool_t *pool, ngx_ssl_conn_t *ssl_conn, | 42 ngx_int_t ngx_quic_decrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn); |
43 ngx_quic_header_t *pkt); | |
44 | 43 |
45 | 44 |
46 #endif /* _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_ */ | 45 #endif /* _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_ */ |