1 #ifndef __included_tls_picotls_h__
2 #define __included_tls_picotls_h__
5 #include <picotls/openssl.h>
6 #include <vnet/plugin/plugin.h>
7 #include <vnet/tls/tls.h>
8 #include <vpp/app/version.h>
10 #define TLS_RX_LEN(x) ((x)->rx_content + (x)->rx_len)
11 #define TLS_RX_OFFSET(x) ((x)->rx_content + (x)->rx_offset)
12 #define TLS_RX_IS_LEFT(x) ((x)->rx_len != (x)->rx_offset)
13 #define TLS_RX_LEFT_LEN(x) ((x)->rx_len - (x)->rx_offset)
16 typedef struct tls_ctx_picotls_
26 typedef struct tls_listen_ctx_picotls_
29 ptls_context_t *ptls_ctx;
30 } picotls_listen_ctx_t;
32 typedef struct picotls_main_
34 picotls_ctx_t ***ctx_pool;
35 picotls_listen_ctx_t *lctx_pool;
38 #endif /* __included_quic_certs_h__ */
41 * fd.io coding-style-patch-verification: ON
44 * eval: (c-set-style "gnu")