summaryrefslogtreecommitdiffstats
path: root/src/plugins/tlspicotls/tls_picotls.h
diff options
context:
space:
mode:
authorSimon Zhang <yuwei1.zhang@intel.com>2019-10-14 19:41:51 +0800
committerFlorin Coras <florin.coras@gmail.com>2019-11-10 18:44:44 +0000
commitf83194c2f45bcc736edc8246b510a29c1df15756 (patch)
tree15ce3276d4cf42ec2e2c990d273078d191775bfd /src/plugins/tlspicotls/tls_picotls.h
parentaa43914df656bbd7340b8dbd68f23f8fe0aabfd5 (diff)
tls: picotls engine basic enabling for TLS
Type: feature Change-Id: I700d999771d837604dd0571741f4f0bcbec82403 Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com>
Diffstat (limited to 'src/plugins/tlspicotls/tls_picotls.h')
-rw-r--r--src/plugins/tlspicotls/tls_picotls.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/plugins/tlspicotls/tls_picotls.h b/src/plugins/tlspicotls/tls_picotls.h
new file mode 100644
index 00000000000..835f4a6b071
--- /dev/null
+++ b/src/plugins/tlspicotls/tls_picotls.h
@@ -0,0 +1,40 @@
+#ifndef __included_tls_picotls_h__
+#define __included_tls_picotls_h__
+
+#include <picotls.h>
+#include <picotls/openssl.h>
+#include <vnet/plugin/plugin.h>
+#include <vnet/tls/tls.h>
+#include <vpp/app/version.h>
+
+typedef struct tls_ctx_picotls_
+{
+ tls_ctx_t ctx;
+ u32 ptls_ctx_idx;
+ ptls_t *tls;
+ u8 *rx_content;
+ int rx_offset;
+ int rx_len;
+} picotls_ctx_t;
+
+typedef struct tls_listen_ctx_picotls_
+{
+ u32 ptls_lctx_index;
+ ptls_context_t *ptls_ctx;
+} picotls_listen_ctx_t;
+
+typedef struct picotls_main_
+{
+ picotls_ctx_t ***ctx_pool;
+ picotls_listen_ctx_t *lctx_pool;
+} picotls_main_t;
+
+#endif /* __included_quic_certs_h__ */
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */