quic: Implement crypto contexts
[vpp.git] / src / vnet / session / application_interface.h
index 3a4f992..a40aa9d 100644 (file)
@@ -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 */
@@ -361,6 +362,7 @@ typedef struct session_accepted_msg_
   u64 segment_handle;
   uword vpp_event_queue_address;
   transport_endpoint_t rmt;
+  u8 flags;
 } __clib_packed session_accepted_msg_t;
 
 typedef struct session_accepted_reply_msg_
@@ -386,6 +388,7 @@ typedef struct session_connect_msg_
   u64 parent_handle;
   u32 ckpair_index;
   u8 crypto_engine;
+  u8 flags;
 } __clib_packed session_connect_msg_t;
 
 STATIC_ASSERT (sizeof (session_connect_msg_t) <= SESSION_CTRL_MSG_MAX_SIZE,