aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-11-12 16:41:00 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-11-26 19:12:32 +0000
commitc298f3760228ad7846d40b6850a777ca5e5c5117 (patch)
tree9ec806ff6ec27a15af3836fb2c1e197d8dccc8b9 /src/vnet/session
parentbe2ad0b4743ed8a3875a5b6039c10c66eb07614c (diff)
quic: Refactor for crypto contexts
Type: refactor Change-Id: I5ec7079d34826edd7a3048ae1d44037386f5d3ff Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/application.c2
-rw-r--r--src/vnet/session/application.h3
-rw-r--r--src/vnet/session/application_interface.h1
3 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index 7c3293abc54..42c5136a70b 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -1432,8 +1432,6 @@ format_crypto_context (u8 * s, va_list * args)
format (s, "[0x%x][sub%d,ckpair%x]", crctx->ctx_index,
crctx->n_subscribers, crctx->ckpair_index);
s = format (s, "[%U]", format_crypto_engine, crctx->crypto_engine);
- if (crctx->stale)
- s = format (s, " -- DELETED");
return s;
}
diff --git a/src/vnet/session/application.h b/src/vnet/session/application.h
index 4a963826fec..e53c8ed8598 100644
--- a/src/vnet/session/application.h
+++ b/src/vnet/session/application.h
@@ -115,6 +115,9 @@ typedef struct application_
u8 tls_engine;
u64 *quicly_ctx;
+ /** quic initialization vector */
+ char quic_iv[17];
+ u8 quic_iv_set;
} application_t;
diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h
index a865b081ca2..3a4f9928d04 100644
--- a/src/vnet/session/application_interface.h
+++ b/src/vnet/session/application_interface.h
@@ -182,7 +182,6 @@ typedef struct crypto_ctx_
u32 n_subscribers; /**< refcount of sessions using said context */
u32 ckpair_index; /**< certificate & key */
u8 crypto_engine;
- u8 stale; /**< Marked invalid for re-use (aka ckpair deleted) */
} crypto_context_t;
/* Application attach options */