FD.io VPP  v18.07-34-g55fbdb9
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 int openssl_try_handshake_read (openssl_ctx_t *oc, stream_session_t *tls_session)
 
static int openssl_try_handshake_write (openssl_ctx_t *oc, stream_session_t *tls_session)
 
int openssl_ctx_handshake_rx (tls_ctx_t *ctx, stream_session_t *tls_session)
 
static int openssl_ctx_write (tls_ctx_t *ctx, stream_session_t *app_session)
 
static int openssl_ctx_read (tls_ctx_t *ctx, stream_session_t *tls_session)
 
static int openssl_ctx_init_client (tls_ctx_t *ctx)
 
static int openssl_ctx_init_server (tls_ctx_t *ctx)
 
static u8 openssl_handshake_is_over (tls_ctx_t *ctx)
 
int tls_init_ca_chain (void)
 
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

#define MAX_CRYPTO_LEN   16

Definition at line 29 of file tls_openssl.c.

Function Documentation

static u32 openssl_ctx_alloc ( void  )
static

Definition at line 33 of file tls_openssl.c.

+ Here is the call graph for this function:

static void openssl_ctx_free ( tls_ctx_t ctx)
static

Definition at line 52 of file tls_openssl.c.

tls_ctx_t* openssl_ctx_get ( u32  ctx_index)

Definition at line 71 of file tls_openssl.c.

+ Here is the call graph for this function:

tls_ctx_t* openssl_ctx_get_w_thread ( u32  ctx_index,
u8  thread_index 
)

Definition at line 80 of file tls_openssl.c.

+ Here is the caller graph for this function:

int openssl_ctx_handshake_rx ( tls_ctx_t ctx,
stream_session_t tls_session 
)

Definition at line 180 of file tls_openssl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int openssl_ctx_init_client ( tls_ctx_t ctx)
static

Definition at line 421 of file tls_openssl.c.

+ Here is the call graph for this function:

static int openssl_ctx_init_server ( tls_ctx_t ctx)
static

Definition at line 502 of file tls_openssl.c.

+ Here is the call graph for this function:

static int openssl_ctx_read ( tls_ctx_t ctx,
stream_session_t tls_session 
)
inlinestatic

Definition at line 340 of file tls_openssl.c.

+ Here is the call graph for this function:

static int openssl_ctx_write ( tls_ctx_t ctx,
stream_session_t app_session 
)
inlinestatic

Definition at line 262 of file tls_openssl.c.

+ Here is the call graph for this function:

static u8 openssl_handshake_is_over ( tls_ctx_t ctx)
static

Definition at line 621 of file tls_openssl.c.

static int openssl_try_handshake_read ( openssl_ctx_t oc,
stream_session_t tls_session 
)
static

Definition at line 88 of file tls_openssl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int openssl_try_handshake_write ( openssl_ctx_t oc,
stream_session_t tls_session 
)
static

Definition at line 120 of file tls_openssl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int tls_init_ca_chain ( void  )

Definition at line 642 of file tls_openssl.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* tls_openssl_init ( vlib_main_t vm)
static

Definition at line 685 of file tls_openssl.c.

+ Here is the call graph for this function:

VLIB_PLUGIN_REGISTER ( )

+ Here is the caller graph for this function:

Variable Documentation

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,
}
static u8 openssl_handshake_is_over(tls_ctx_t *ctx)
Definition: tls_openssl.c:621
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
tls_ctx_t * openssl_ctx_get(u32 ctx_index)
Definition: tls_openssl.c:71
static int openssl_ctx_write(tls_ctx_t *ctx, stream_session_t *app_session)
Definition: tls_openssl.c:262
static int openssl_ctx_init_client(tls_ctx_t *ctx)
Definition: tls_openssl.c:421
tls_ctx_t * openssl_ctx_get_w_thread(u32 ctx_index, u8 thread_index)
Definition: tls_openssl.c:80
static int openssl_ctx_init_server(tls_ctx_t *ctx)
Definition: tls_openssl.c:502
static int openssl_ctx_read(tls_ctx_t *ctx, stream_session_t *tls_session)
Definition: tls_openssl.c:340

Definition at line 629 of file tls_openssl.c.

openssl_main_t openssl_main
static

Definition at line 31 of file tls_openssl.c.