VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
ssl_select.h File Reference
#include <openssl/ssl.h>
#include <openssl/err.h>

Go to the source code of this file.

Data Structures

struct  wait_event
 
struct  ssl_info
 
struct  ssl_pwd_data
 

Macros

#define SSL_SEL_PASSWORD_MAX   512
 
#define invoke_ssl_send   (1 << 0)
 
#define invoke_ssl_recv   (1 << 1)
 
#define invoke_ssl_connect   (1 << 2)
 
#define invoke_ssl_accept   (1 << 3)
 

Enumerations

enum  { SSL_OPS_FAIL = -1 , SSL_OPS_SELECT = -2 }
 

Functions

ssl_infosslinfo_alloc (void)
 
void init_ssl_lib (void)
 
SSL_CTX * initialize_ctx (char *rootCA, char *keyfile, char *password, ssl_pwd_data *buff)
 
void destroy_ctx (SSL_CTX *ctx)
 
int __set_block (int sock)
 
int __set_nonblock (int sock)
 
int ssl_connect_direct (ssl_info *info, int *ssl_errno)
 
int ssl_send_direct (ssl_info *info, void *buf, int len, int *ssl_errno)
 
int ssl_recv_direct (ssl_info *info, void *buf, int len, int *ssl_errno)
 
int ssl_accept_direct (ssl_info *info, int *ssl_errno)
 
int ssl_connect_simple (ssl_info *info, int to_ms, int *ssl_errno)
 
int ssl_accept_simple (ssl_info *info, int to_ms, int *ssl_errno)
 
int ssl_send_simple (ssl_info *info, void *buf, int len, int to_ms, int *ssl_errno)
 
int ssl_recv_simple (ssl_info *info, void *buf, int len, int to_ms, int *ssl_errno)
 
int ssl_connect_simple_tv (ssl_info *info, struct timeval *tv, int *ssl_errno)
 
int ssl_connect_accept_tv (ssl_info *info, struct timeval *tv, int *ssl_errno)
 
int ssl_send_simple_tv (ssl_info *info, void *buf, int len, struct timeval *tv, int *ssl_errno)
 
int ssl_recv_simple_tv (ssl_info *info, void *buf, int len, struct timeval *tv, int *ssl_errno)
 
int ssl_set_fds (ssl_info *info, int maxfd, fd_set *rfds, fd_set *wfds)
 
int ssl_errno_str (ssl_info *info, int ssl_errno, char *buf, int buflen)
 
int ssl_handle_fds (ssl_info *info, fd_set *rfds, fd_set *wfds)
 

Macro Definition Documentation

◆ invoke_ssl_accept

#define invoke_ssl_accept   (1 << 3)

◆ invoke_ssl_connect

#define invoke_ssl_connect   (1 << 2)

◆ invoke_ssl_recv

#define invoke_ssl_recv   (1 << 1)

◆ invoke_ssl_send

#define invoke_ssl_send   (1 << 0)

◆ SSL_SEL_PASSWORD_MAX

#define SSL_SEL_PASSWORD_MAX   512

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SSL_OPS_FAIL 
SSL_OPS_SELECT 

Function Documentation

◆ __set_block()

int __set_block ( int sock)

◆ __set_nonblock()

int __set_nonblock ( int sock)

◆ destroy_ctx()

void destroy_ctx ( SSL_CTX * ctx)

◆ init_ssl_lib()

void init_ssl_lib ( void )

◆ initialize_ctx()

SSL_CTX * initialize_ctx ( char * rootCA,
char * keyfile,
char * password,
ssl_pwd_data * buff )

◆ ssl_accept_direct()

int ssl_accept_direct ( ssl_info * info,
int * ssl_errno )

◆ ssl_accept_simple()

int ssl_accept_simple ( ssl_info * info,
int to_ms,
int * ssl_errno )

◆ ssl_connect_accept_tv()

int ssl_connect_accept_tv ( ssl_info * info,
struct timeval * tv,
int * ssl_errno )

◆ ssl_connect_direct()

int ssl_connect_direct ( ssl_info * info,
int * ssl_errno )

◆ ssl_connect_simple()

int ssl_connect_simple ( ssl_info * info,
int to_ms,
int * ssl_errno )

◆ ssl_connect_simple_tv()

int ssl_connect_simple_tv ( ssl_info * info,
struct timeval * tv,
int * ssl_errno )

◆ ssl_errno_str()

int ssl_errno_str ( ssl_info * info,
int ssl_errno,
char * buf,
int buflen )

◆ ssl_handle_fds()

int ssl_handle_fds ( ssl_info * info,
fd_set * rfds,
fd_set * wfds )

◆ ssl_recv_direct()

int ssl_recv_direct ( ssl_info * info,
void * buf,
int len,
int * ssl_errno )

◆ ssl_recv_simple()

int ssl_recv_simple ( ssl_info * info,
void * buf,
int len,
int to_ms,
int * ssl_errno )

◆ ssl_recv_simple_tv()

int ssl_recv_simple_tv ( ssl_info * info,
void * buf,
int len,
struct timeval * tv,
int * ssl_errno )

◆ ssl_send_direct()

int ssl_send_direct ( ssl_info * info,
void * buf,
int len,
int * ssl_errno )

◆ ssl_send_simple()

int ssl_send_simple ( ssl_info * info,
void * buf,
int len,
int to_ms,
int * ssl_errno )

◆ ssl_send_simple_tv()

int ssl_send_simple_tv ( ssl_info * info,
void * buf,
int len,
struct timeval * tv,
int * ssl_errno )

◆ ssl_set_fds()

int ssl_set_fds ( ssl_info * info,
int maxfd,
fd_set * rfds,
fd_set * wfds )

◆ sslinfo_alloc()

ssl_info * sslinfo_alloc ( void )