|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
21 #ifndef SRC_VNET_TLS_TLS_H_
22 #define SRC_VNET_TLS_TLS_H_
25 #define TLS_DEBUG_LEVEL_CLIENT 0
26 #define TLS_DEBUG_LEVEL_SERVER 0
28 #define TLS_CHUNK_SIZE (1 << 14)
29 #define TLS_CA_CERT_PATH "/etc/ssl/certs/ca-certificates.crt"
32 #define TLS_DBG(_lvl, _fmt, _args...) \
33 if (_lvl <= TLS_DEBUG) \
34 clib_warning (_fmt, ##_args)
36 #define TLS_DBG(_lvl, _fmt, _args...)
57 "ctx id must be less than TRANSPORT_CONN_ID_LEN");
66 #define parent_app_wrk_index c_tls_ctx_id.parent_app_wrk_index
67 #define app_session_handle c_tls_ctx_id.app_session_handle
68 #define tls_session_handle c_tls_ctx_id.tls_session_handle
69 #define listener_ctx_index c_tls_ctx_id.listener_ctx_index
70 #define tcp_is_ip4 c_tls_ctx_id.tcp_is_ip4
71 #define tls_ctx_engine c_tls_ctx_id.tls_engine_id
72 #define tls_ssl_ctx c_tls_ctx_id.ssl_ctx
73 #define tls_ctx_handle c_c_index
76 #define parent_app_api_context c_tls_ctx_id.parent_app_api_ctx
77 #define migration_ctx c_tls_ctx_id.migrate_ctx
enum crypto_engine_type_ crypto_engine_type_t
enum session_error_ session_error_t
int(* ctx_write)(tls_ctx_t *ctx, session_t *app_session, transport_send_params_t *sp)
int(* ctx_app_close)(tls_ctx_t *ctx)
int tls_add_vpp_q_rx_evt(session_t *s)
tls_ctx_t * listener_ctx_pool
int tls_notify_app_accept(tls_ctx_t *ctx)
void tls_notify_app_enqueue(tls_ctx_t *ctx, session_t *app_session)
int(* ctx_start_listen)(tls_ctx_t *ctx)
void tls_disconnect_transport(tls_ctx_t *ctx)
transport_proto_t tls_type
int tls_notify_app_connected(tls_ctx_t *ctx, session_error_t err)
struct _transport_connection transport_connection_t
int tls_add_vpp_q_builtin_tx_evt(session_t *s)
int(* ctx_stop_listen)(tls_ctx_t *ctx)
tls_ctx_id_t c_tls_ctx_id
tls_main_t * vnet_tls_get_main(void)
transport_connection_t connection
void(* ctx_free)(tls_ctx_t *ctx)
struct tls_engine_vft_ tls_engine_vft_t
session_handle_t app_session_handle
tls_ctx_t * half_open_ctx_pool
int(* ctx_init_server)(tls_ctx_t *ctx)
int(* ctx_transport_close)(tls_ctx_t *ctx)
struct tls_main_ tls_main_t
int(* ctx_init_client)(tls_ctx_t *ctx)
enum _transport_proto transport_proto_t
int(* ctx_read)(tls_ctx_t *ctx, session_t *tls_session)
session_handle_t tls_session_handle
struct tls_cxt_id_ tls_ctx_id_t
struct tls_ctx_ tls_ctx_t
u32(* ctx_alloc_w_thread)(u32 thread_index)
u32(* ctx_attach)(u32 thread_index, void *ctx)
int tls_add_vpp_q_tx_evt(session_t *s)
u8(* ctx_handshake_is_over)(tls_ctx_t *ctx)
clib_rwlock_t half_open_rwlock
#define TRANSPORT_CONN_ID_LEN
void tls_register_engine(const tls_engine_vft_t *vft, crypto_engine_type_t type)
vl_api_fib_path_type_t type
STATIC_ASSERT(sizeof(tls_ctx_id_t)<=TRANSPORT_CONN_ID_LEN, "ctx id must be less than TRANSPORT_CONN_ID_LEN")
int tls_add_vpp_q_builtin_rx_evt(session_t *s)