diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2019-11-07 13:52:09 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-12-17 17:03:50 +0000 |
commit | d1b9e706841150d0da042a05aab51f19fa804192 (patch) | |
tree | 340bcbdd128ff86323eb963631f9f3f018328a67 /src/vnet/session | |
parent | 70ae4efaa9b719a0bc84345143a1a4d3944a70fe (diff) |
quic: Implement crypto contexts
Type: feature
Make quic use the crypto contexts. This introduces a crypto context
pool backed by a hashtable giving ctx indexes by connect params
(ckpair, engine, rx & tx fifo sizes).
Applications keep the initialization vector common.
Change-Id: I22ed6711196cd70a2f2f74240f12113c7af8dfcd
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/application.h | 1 | ||||
-rw-r--r-- | src/vnet/session/application_interface.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/application.h b/src/vnet/session/application.h index e53c8ed8598..9943576377d 100644 --- a/src/vnet/session/application.h +++ b/src/vnet/session/application.h @@ -114,7 +114,6 @@ typedef struct application_ /** Preferred tls engine */ u8 tls_engine; - u64 *quicly_ctx; /** quic initialization vector */ char quic_iv[17]; u8 quic_iv_set; diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h index ec29d18b59b..a40aa9d9a7f 100644 --- a/src/vnet/session/application_interface.h +++ b/src/vnet/session/application_interface.h @@ -182,6 +182,7 @@ typedef struct crypto_ctx_ u32 n_subscribers; /**< refcount of sessions using said context */ u32 ckpair_index; /**< certificate & key */ u8 crypto_engine; + void *data; /**< protocol specific data */ } crypto_context_t; /* Application attach options */ |