FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
tls_openssl.c File Reference
+ Include dependency graph for tls_openssl.c:

Go to the source code of this file.

Data Structures

struct  tls_ctx_openssl_
 
struct  openssl_main_
 

Typedefs

typedef struct tls_ctx_openssl_ openssl_ctx_t
 
typedef struct openssl_main_ openssl_main_t
 

Functions

static u32 openssl_ctx_alloc (void)
 
static void openssl_ctx_free (tls_ctx_t *ctx)
 
static tls_ctx_topenssl_ctx_get (u32 ctx_index)
 
static 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)
 
static 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
 

Typedef Documentation

typedef struct openssl_main_ openssl_main_t

Function Documentation

static u32 openssl_ctx_alloc ( void  )
static

Definition at line 44 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 63 of file tls_openssl.c.

static tls_ctx_t* openssl_ctx_get ( u32  ctx_index)
static

Definition at line 82 of file tls_openssl.c.

+ Here is the call graph for this function:

static tls_ctx_t* openssl_ctx_get_w_thread ( u32  ctx_index,
u8  thread_index 
)
static

Definition at line 91 of file tls_openssl.c.

static int openssl_ctx_handshake_rx ( tls_ctx_t ctx,
stream_session_t tls_session 
)
static

Definition at line 169 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 392 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 473 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 311 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 233 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 569 of file tls_openssl.c.

static int openssl_try_handshake_read ( openssl_ctx_t oc,
stream_session_t tls_session 
)
static

Definition at line 99 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 131 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 590 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 633 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:569
static u32 openssl_ctx_alloc(void)
Definition: tls_openssl.c:44
static void openssl_ctx_free(tls_ctx_t *ctx)
Definition: tls_openssl.c:63
static tls_ctx_t * openssl_ctx_get(u32 ctx_index)
Definition: tls_openssl.c:82
static int openssl_ctx_write(tls_ctx_t *ctx, stream_session_t *app_session)
Definition: tls_openssl.c:233
static int openssl_ctx_init_client(tls_ctx_t *ctx)
Definition: tls_openssl.c:392
static int openssl_ctx_init_server(tls_ctx_t *ctx)
Definition: tls_openssl.c:473
static tls_ctx_t * openssl_ctx_get_w_thread(u32 ctx_index, u8 thread_index)
Definition: tls_openssl.c:91
static int openssl_ctx_read(tls_ctx_t *ctx, stream_session_t *tls_session)
Definition: tls_openssl.c:311

Definition at line 577 of file tls_openssl.c.

openssl_main_t openssl_main
static

Definition at line 41 of file tls_openssl.c.