diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2019-11-12 16:41:00 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-11-26 19:12:32 +0000 |
commit | c298f3760228ad7846d40b6850a777ca5e5c5117 (patch) | |
tree | 9ec806ff6ec27a15af3836fb2c1e197d8dccc8b9 /src/plugins/quic/quic.h | |
parent | be2ad0b4743ed8a3875a5b6039c10c66eb07614c (diff) |
quic: Refactor for crypto contexts
Type: refactor
Change-Id: I5ec7079d34826edd7a3048ae1d44037386f5d3ff
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/quic/quic.h')
-rw-r--r-- | src/plugins/quic/quic.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/plugins/quic/quic.h b/src/plugins/quic/quic.h index 29d5224cdec..56817bc0352 100644 --- a/src/plugins/quic/quic.h +++ b/src/plugins/quic/quic.h @@ -165,7 +165,7 @@ typedef struct quic_stream_data_ { u32 ctx_id; u32 thread_index; - u32 app_rx_data_len; /* bytes received, to be read by external app */ + u32 app_rx_data_len; /**< bytes received, to be read by external app */ } quic_stream_data_t; typedef struct quic_worker_ctx_ @@ -203,21 +203,16 @@ typedef struct quic_main_ u32 app_index; quic_ctx_t **ctx_pool; quic_worker_ctx_t *wrk_ctx; - clib_bihash_16_8_t connection_hash; /* quic connection id -> conn handle */ + clib_bihash_16_8_t connection_hash; /**< quic connection id -> conn handle */ f64 tstamp_ticks_per_clock; - ptls_cipher_suite_t ***quic_ciphers; /* available ciphers by crypto engine */ - uword *available_crypto_engines; /* Bitmap for registered engines */ - u8 default_crypto_engine; /* Used if you do connect with CRYPTO_ENGINE_NONE (0) */ + ptls_cipher_suite_t ***quic_ciphers; /**< available ciphers by crypto engine */ + uword *available_crypto_engines; /**< Bitmap for registered engines */ + u8 default_crypto_engine; /**< Used if you do connect with CRYPTO_ENGINE_NONE (0) */ - quic_session_cache_t session_cache; - - /* - * Config - */ - quicly_context_t quicly_ctx; ptls_handshake_properties_t hs_properties; quicly_cid_plaintext_t next_cid; + quic_session_cache_t session_cache; u32 udp_fifo_size; u32 udp_fifo_prealloc; |