FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
tls_openssl.c File Reference
+ Include dependency graph for tls_openssl.c:

Go to the source code of this file.

Macros

#define MAX_CRYPTO_LEN   16
 

Functions

static u32 openssl_ctx_alloc (void)
 
static void openssl_ctx_free (tls_ctx_t *ctx)
 
tls_ctx_topenssl_ctx_get (u32 ctx_index)
 
tls_ctx_topenssl_ctx_get_w_thread (u32 ctx_index, u8 thread_index)
 
static u32 openssl_listen_ctx_alloc (void)
 
static void openssl_listen_ctx_free (openssl_listen_ctx_t *lctx)
 
openssl_listen_ctx_topenssl_lctx_get (u32 lctx_index)
 
static int openssl_try_handshake_read (openssl_ctx_t *oc, session_t *tls_session)
 
static int openssl_try_handshake_write (openssl_ctx_t *oc, session_t *tls_session)
 
static void openssl_handle_handshake_failure (tls_ctx_t *ctx)
 
int openssl_ctx_handshake_rx (tls_ctx_t *ctx, session_t *tls_session)
 
static void openssl_confirm_app_close (tls_ctx_t *ctx)
 
static int openssl_ctx_write (tls_ctx_t *ctx, session_t *app_session)
 
static int openssl_ctx_read (tls_ctx_t *ctx, session_t *tls_session)
 
static int openssl_ctx_init_client (tls_ctx_t *ctx)
 
static int openssl_start_listen (tls_ctx_t *lctx)
 
static int openssl_stop_listen (tls_ctx_t *lctx)
 
static int openssl_ctx_init_server (tls_ctx_t *ctx)
 
static u8 openssl_handshake_is_over (tls_ctx_t *ctx)
 
static int openssl_transport_close (tls_ctx_t *ctx)
 
static int openssl_app_close (tls_ctx_t *ctx)
 
int tls_init_ca_chain (void)
 
static int tls_openssl_set_ciphers (char *ciphers)
 
static clib_error_ttls_openssl_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

static openssl_main_t openssl_main
 
static const tls_engine_vft_t openssl_engine
 

Macro Definition Documentation

◆ MAX_CRYPTO_LEN

#define MAX_CRYPTO_LEN   16

Definition at line 29 of file tls_openssl.c.

Function Documentation

◆ openssl_app_close()

static int openssl_app_close ( tls_ctx_t ctx)
static

Definition at line 783 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_confirm_app_close()

static void openssl_confirm_app_close ( tls_ctx_t ctx)
static

Definition at line 326 of file tls_openssl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openssl_ctx_alloc()

static u32 openssl_ctx_alloc ( void  )
static

Definition at line 33 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_ctx_free()

static void openssl_ctx_free ( tls_ctx_t ctx)
static

Definition at line 52 of file tls_openssl.c.

◆ openssl_ctx_get()

tls_ctx_t* openssl_ctx_get ( u32  ctx_index)

Definition at line 67 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_ctx_get_w_thread()

tls_ctx_t* openssl_ctx_get_w_thread ( u32  ctx_index,
u8  thread_index 
)

Definition at line 76 of file tls_openssl.c.

+ Here is the caller graph for this function:

◆ openssl_ctx_handshake_rx()

int openssl_ctx_handshake_rx ( tls_ctx_t ctx,
session_t tls_session 
)

Definition at line 231 of file tls_openssl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openssl_ctx_init_client()

static int openssl_ctx_init_client ( tls_ctx_t ctx)
static

Definition at line 501 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_ctx_init_server()

static int openssl_ctx_init_server ( tls_ctx_t ctx)
static

Definition at line 705 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_ctx_read()

static int openssl_ctx_read ( tls_ctx_t ctx,
session_t tls_session 
)
inlinestatic

Definition at line 416 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_ctx_write()

static int openssl_ctx_write ( tls_ctx_t ctx,
session_t app_session 
)
inlinestatic

Definition at line 333 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_handle_handshake_failure()

static void openssl_handle_handshake_failure ( tls_ctx_t ctx)
static

Definition at line 209 of file tls_openssl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openssl_handshake_is_over()

static u8 openssl_handshake_is_over ( tls_ctx_t ctx)
static

Definition at line 762 of file tls_openssl.c.

+ Here is the caller graph for this function:

◆ openssl_lctx_get()

openssl_listen_ctx_t* openssl_lctx_get ( u32  lctx_index)

Definition at line 103 of file tls_openssl.c.

+ Here is the caller graph for this function:

◆ openssl_listen_ctx_alloc()

static u32 openssl_listen_ctx_alloc ( void  )
static

Definition at line 84 of file tls_openssl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openssl_listen_ctx_free()

static void openssl_listen_ctx_free ( openssl_listen_ctx_t lctx)
static

Definition at line 97 of file tls_openssl.c.

+ Here is the caller graph for this function:

◆ openssl_start_listen()

static int openssl_start_listen ( tls_ctx_t lctx)
static

Definition at line 596 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_stop_listen()

static int openssl_stop_listen ( tls_ctx_t lctx)
static

Definition at line 687 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_transport_close()

static int openssl_transport_close ( tls_ctx_t ctx)
static

Definition at line 771 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ openssl_try_handshake_read()

static int openssl_try_handshake_read ( openssl_ctx_t oc,
session_t tls_session 
)
static

Definition at line 109 of file tls_openssl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ openssl_try_handshake_write()

static int openssl_try_handshake_write ( openssl_ctx_t oc,
session_t tls_session 
)
static

Definition at line 140 of file tls_openssl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tls_init_ca_chain()

int tls_init_ca_chain ( void  )

Definition at line 815 of file tls_openssl.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tls_openssl_init()

static clib_error_t* tls_openssl_init ( vlib_main_t vm)
static

Definition at line 884 of file tls_openssl.c.

+ Here is the call graph for this function:

◆ tls_openssl_set_ciphers()

static int tls_openssl_set_ciphers ( char *  ciphers)
static

Definition at line 863 of file tls_openssl.c.

+ Here is the caller graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

Variable Documentation

◆ openssl_engine

const tls_engine_vft_t openssl_engine
static
Initial value:
= {
.ctx_alloc = openssl_ctx_alloc,
.ctx_free = openssl_ctx_free,
.ctx_get = openssl_ctx_get,
.ctx_get_w_thread = openssl_ctx_get_w_thread,
.ctx_init_server = openssl_ctx_init_server,
.ctx_init_client = openssl_ctx_init_client,
.ctx_write = openssl_ctx_write,
.ctx_read = openssl_ctx_read,
.ctx_handshake_is_over = openssl_handshake_is_over,
.ctx_start_listen = openssl_start_listen,
.ctx_stop_listen = openssl_stop_listen,
.ctx_transport_close = openssl_transport_close,
.ctx_app_close = openssl_app_close,
}
static int openssl_transport_close(tls_ctx_t *ctx)
Definition: tls_openssl.c:771
static u8 openssl_handshake_is_over(tls_ctx_t *ctx)
Definition: tls_openssl.c:762
static u32 openssl_ctx_alloc(void)
Definition: tls_openssl.c:33
static void openssl_ctx_free(tls_ctx_t *ctx)
Definition: tls_openssl.c:52
static int openssl_stop_listen(tls_ctx_t *lctx)
Definition: tls_openssl.c:687
tls_ctx_t * openssl_ctx_get(u32 ctx_index)
Definition: tls_openssl.c:67
static int openssl_ctx_init_client(tls_ctx_t *ctx)
Definition: tls_openssl.c:501
static int openssl_app_close(tls_ctx_t *ctx)
Definition: tls_openssl.c:783
static int openssl_ctx_write(tls_ctx_t *ctx, session_t *app_session)
Definition: tls_openssl.c:333
static int openssl_ctx_read(tls_ctx_t *ctx, session_t *tls_session)
Definition: tls_openssl.c:416
tls_ctx_t * openssl_ctx_get_w_thread(u32 ctx_index, u8 thread_index)
Definition: tls_openssl.c:76
static int openssl_ctx_init_server(tls_ctx_t *ctx)
Definition: tls_openssl.c:705
static int openssl_start_listen(tls_ctx_t *lctx)
Definition: tls_openssl.c:596

Definition at line 798 of file tls_openssl.c.

◆ openssl_main

openssl_main_t openssl_main
static

Definition at line 31 of file tls_openssl.c.