From c298f3760228ad7846d40b6850a777ca5e5c5117 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Tue, 12 Nov 2019 16:41:00 +0100 Subject: quic: Refactor for crypto contexts Type: refactor Change-Id: I5ec7079d34826edd7a3048ae1d44037386f5d3ff Signed-off-by: Nathan Skrzypczak --- src/plugins/quic/quic.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/plugins/quic/quic.h') 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; -- cgit 1.2.3-korg