diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2021-04-13 12:38:34 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-04-13 12:38:34 +0300 |
| commit | 2f5bcafdde60c722fe5cd28965613abafb451acb (patch) | |
| tree | e42de25df996371c04d1e7921d4a467f70adf6d0 /src/event/quic/ngx_event_quic.h | |
| parent | 792117312d4fafba5af68b5c2fff51c58dcd3bc0 (diff) | |
| download | nginx-2f5bcafdde60c722fe5cd28965613abafb451acb.tar.gz nginx-2f5bcafdde60c722fe5cd28965613abafb451acb.tar.bz2 | |
QUIC: normalize header inclusion.
Stop including QUIC headers with no user-serviceable parts inside.
This allows to provide a much cleaner QUIC interface. To cope with that,
ngx_quic_derive_key() is now explicitly exported for v3 and quic modules.
Additionally, this completely hides the ngx_quic_keys_t internal type.
Diffstat (limited to 'src/event/quic/ngx_event_quic.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/event/quic/ngx_event_quic.h b/src/event/quic/ngx_event_quic.h index 66395dbcf..8a442b4b3 100644 --- a/src/event/quic/ngx_event_quic.h +++ b/src/event/quic/ngx_event_quic.h @@ -85,9 +85,6 @@ struct ngx_quic_stream_s { }; -typedef struct ngx_quic_keys_s ngx_quic_keys_t; - - void ngx_quic_run(ngx_connection_t *c, ngx_quic_conf_t *conf); ngx_connection_t *ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi); void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err, @@ -98,5 +95,7 @@ ngx_int_t ngx_quic_reset_stream(ngx_connection_t *c, ngx_uint_t err); uint32_t ngx_quic_version(ngx_connection_t *c); ngx_int_t ngx_quic_get_packet_dcid(ngx_log_t *log, u_char *data, size_t len, ngx_str_t *dcid); +ngx_int_t ngx_quic_derive_key(ngx_log_t *log, const char *label, + ngx_str_t *secret, ngx_str_t *salt, u_char *out, size_t len); #endif /* _NGX_EVENT_QUIC_H_INCLUDED_ */ |
