OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Enumerations | Functions
tunala.h File Reference
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <signal.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <openssl/err.h>
#include <openssl/engine.h>
#include <openssl/ssl.h>

Go to the source code of this file.

Classes

struct  _buffer_t
 
struct  _state_machine_t
 

Macros

#define MAX_DATA_SIZE   16384
 

Typedefs

typedef struct _buffer_t buffer_t
 
typedef struct _state_machine_t state_machine_t
 

Enumerations

enum  sm_buffer_t { SM_CLEAN_IN, SM_CLEAN_OUT, SM_DIRTY_IN, SM_DIRTY_OUT }
 

Functions

void buffer_init (buffer_t *buf)
 
void buffer_close (buffer_t *buf)
 
unsigned int buffer_used (buffer_t *buf)
 
unsigned int buffer_unused (buffer_t *buf)
 
int buffer_full (buffer_t *buf)
 
int buffer_notfull (buffer_t *buf)
 
int buffer_empty (buffer_t *buf)
 
int buffer_notempty (buffer_t *buf)
 
unsigned long buffer_total_in (buffer_t *buf)
 
unsigned long buffer_total_out (buffer_t *buf)
 
int buffer_from_fd (buffer_t *buf, int fd)
 
int buffer_to_fd (buffer_t *buf, int fd)
 
void buffer_from_SSL (buffer_t *buf, SSL *ssl)
 
void buffer_to_SSL (buffer_t *buf, SSL *ssl)
 
void buffer_from_BIO (buffer_t *buf, BIO *bio)
 
void buffer_to_BIO (buffer_t *buf, BIO *bio)
 
void cb_ssl_info (const SSL *s, int where, int ret)
 
void cb_ssl_info_set_output (FILE *fp)
 
int cb_ssl_verify (int ok, X509_STORE_CTX *ctx)
 
void cb_ssl_verify_set_output (FILE *fp)
 
void cb_ssl_verify_set_depth (unsigned int verify_depth)
 
void cb_ssl_verify_set_level (unsigned int level)
 
RSAcb_generate_tmp_rsa (SSL *s, int is_export, int keylength)
 
void state_machine_init (state_machine_t *machine)
 
void state_machine_close (state_machine_t *machine)
 
buffer_tstate_machine_get_buffer (state_machine_t *machine, sm_buffer_t type)
 
SSLstate_machine_get_SSL (state_machine_t *machine)
 
int state_machine_set_SSL (state_machine_t *machine, SSL *ssl, int is_server)
 
int state_machine_churn (state_machine_t *machine)
 
int state_machine_close_clean (state_machine_t *machine)
 
int state_machine_close_dirty (state_machine_t *machine)
 
int ip_initialise (void)
 
int ip_create_listener_split (const char *ip, unsigned short port)
 
int ip_create_connection_split (const char *ip, unsigned short port)
 
int ip_create_listener (const char *address)
 
int ip_create_connection (const char *address)
 
int ip_parse_address (const char *address, const char **parsed_ip, unsigned short *port, int accept_all_ip)
 
int ip_accept_connection (int listen_fd)
 
int int_strtoul (const char *str, unsigned long *val)
 
char * int_strstr (const char *haystack, const char *needle)
 

Macro Definition Documentation

#define MAX_DATA_SIZE   16384

Definition at line 84 of file tunala.h.

Typedef Documentation

typedef struct _buffer_t buffer_t

Enumeration Type Documentation

Enumerator:
SM_CLEAN_IN 
SM_CLEAN_OUT 
SM_DIRTY_IN 
SM_DIRTY_OUT 

Definition at line 167 of file tunala.h.

Function Documentation

void buffer_close ( buffer_t buf)

Definition at line 11 of file buffer.c.

int buffer_empty ( buffer_t buf)

Definition at line 26 of file buffer.c.

void buffer_from_BIO ( buffer_t buf,
BIO bio 
)

Definition at line 179 of file buffer.c.

int buffer_from_fd ( buffer_t buf,
int  fd 
)

Definition at line 88 of file buffer.c.

void buffer_from_SSL ( buffer_t buf,
SSL ssl 
)

Definition at line 151 of file buffer.c.

int buffer_full ( buffer_t buf)

Definition at line 22 of file buffer.c.

void buffer_init ( buffer_t buf)

Definition at line 5 of file buffer.c.

int buffer_notempty ( buffer_t buf)

Definition at line 28 of file buffer.c.

int buffer_notfull ( buffer_t buf)

Definition at line 24 of file buffer.c.

void buffer_to_BIO ( buffer_t buf,
BIO bio 
)

Definition at line 191 of file buffer.c.

int buffer_to_fd ( buffer_t buf,
int  fd 
)

Definition at line 102 of file buffer.c.

void buffer_to_SSL ( buffer_t buf,
SSL ssl 
)

Definition at line 165 of file buffer.c.

unsigned long buffer_total_in ( buffer_t buf)

Definition at line 30 of file buffer.c.

unsigned long buffer_total_out ( buffer_t buf)

Definition at line 32 of file buffer.c.

unsigned int buffer_unused ( buffer_t buf)

Definition at line 20 of file buffer.c.

unsigned int buffer_used ( buffer_t buf)

Definition at line 18 of file buffer.c.

RSA* cb_generate_tmp_rsa ( SSL s,
int  is_export,
int  keylength 
)

Definition at line 132 of file cb.c.

void cb_ssl_info ( const SSL s,
int  where,
int  ret 
)

Definition at line 20 of file cb.c.

void cb_ssl_info_set_output ( FILE *  fp)

Definition at line 49 of file cb.c.

int cb_ssl_verify ( int  ok,
X509_STORE_CTX ctx 
)

Definition at line 61 of file cb.c.

void cb_ssl_verify_set_depth ( unsigned int  verify_depth)

Definition at line 121 of file cb.c.

void cb_ssl_verify_set_level ( unsigned int  level)

Definition at line 126 of file cb.c.

void cb_ssl_verify_set_output ( FILE *  fp)

Definition at line 116 of file cb.c.

char* int_strstr ( const char *  haystack,
const char *  needle 
)

Definition at line 41 of file breakage.c.

int int_strtoul ( const char *  str,
unsigned long *  val 
)

Definition at line 3 of file breakage.c.

int ip_accept_connection ( int  listen_fd)

Definition at line 139 of file ip.c.

int ip_create_connection ( const char *  address)

Definition at line 129 of file ip.c.

int ip_create_connection_split ( const char *  ip,
unsigned short  port 
)

Definition at line 50 of file ip.c.

int ip_create_listener ( const char *  address)

Definition at line 119 of file ip.c.

int ip_create_listener_split ( const char *  ip,
unsigned short  port 
)

Definition at line 20 of file ip.c.

int ip_initialise ( void  )

Definition at line 8 of file ip.c.

int ip_parse_address ( const char *  address,
const char **  parsed_ip,
unsigned short *  port,
int  accept_all_ip 
)

Definition at line 80 of file ip.c.

int state_machine_churn ( state_machine_t machine)

Definition at line 82 of file sm.c.

void state_machine_close ( state_machine_t machine)

Definition at line 15 of file sm.c.

int state_machine_close_clean ( state_machine_t machine)

Definition at line 116 of file sm.c.

int state_machine_close_dirty ( state_machine_t machine)

Definition at line 136 of file sm.c.

buffer_t* state_machine_get_buffer ( state_machine_t machine,
sm_buffer_t  type 
)

Definition at line 34 of file sm.c.

SSL* state_machine_get_SSL ( state_machine_t machine)

Definition at line 53 of file sm.c.

void state_machine_init ( state_machine_t machine)

Definition at line 5 of file sm.c.

int state_machine_set_SSL ( state_machine_t machine,
SSL ssl,
int  is_server 
)

Definition at line 58 of file sm.c.