OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
easy-tls.c File Reference
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <openssl/crypto.h>
#include <openssl/dh.h>
#include <openssl/dsa.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/opensslv.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include <openssl/x509_vfy.h>
#include "easy-tls.h"

Go to the source code of this file.

Classes

struct  tls_x509_name_string
 
struct  tunnelbuf
 

Macros

#define TLS_APP_PROCESS_INIT(fd, client_p, apparg)   ((void) 0)
 
#define TLS_ERROR_BUFSIZ   (10*160)
 
#define TLS_APP_ERRFLUSH   tls_app_errflush
 
#define DEBUG_MSG(x)   (void)0
 
#define DEBUG_MSG2(x, y)   (void)0
 
#define my_MIN_SEED_BYTES   256 /* struct stat can be larger than 128 */
 
#define TUNNELBUFSIZE   (16*1024)
 

Functions

struct tls_start_proxy_args tls_start_proxy_defaultargs (void)
 
int tls_start_proxy (struct tls_start_proxy_args a, void *apparg)
 
void tls_rand_seed (void)
 
int tls_rand_seed_from_file (const char *filename, size_t n, void *apparg)
 
void tls_rand_seed_from_memory (const void *buf, size_t n)
 
void tls_set_dhe1024 (int i, void *apparg)
 
struct tls_create_ctx_args tls_create_ctx_defaultargs (void)
 
SSL_CTXtls_create_ctx (struct tls_create_ctx_args a, void *apparg)
 

Macro Definition Documentation

#define DEBUG_MSG (   x)    (void)0

Definition at line 162 of file easy-tls.c.

#define DEBUG_MSG2 (   x,
 
)    (void)0

Definition at line 163 of file easy-tls.c.

#define my_MIN_SEED_BYTES   256 /* struct stat can be larger than 128 */

Definition at line 469 of file easy-tls.c.

#define TLS_APP_ERRFLUSH   tls_app_errflush

Definition at line 146 of file easy-tls.c.

#define TLS_APP_PROCESS_INIT (   fd,
  client_p,
  apparg 
)    ((void) 0)

Definition at line 135 of file easy-tls.c.

#define TLS_ERROR_BUFSIZ   (10*160)

Definition at line 139 of file easy-tls.c.

#define TUNNELBUFSIZE   (16*1024)

Definition at line 866 of file easy-tls.c.

Function Documentation

SSL_CTX* tls_create_ctx ( struct tls_create_ctx_args  a,
void apparg 
)

Definition at line 651 of file easy-tls.c.

struct tls_create_ctx_args tls_create_ctx_defaultargs ( void  )
read

Definition at line 635 of file easy-tls.c.

void tls_rand_seed ( void  )

Definition at line 443 of file easy-tls.c.

int tls_rand_seed_from_file ( const char *  filename,
size_t  n,
void apparg 
)

Definition at line 471 of file easy-tls.c.

void tls_rand_seed_from_memory ( const void buf,
size_t  n 
)

Definition at line 502 of file easy-tls.c.

void tls_set_dhe1024 ( int  i,
void apparg 
)

Definition at line 596 of file easy-tls.c.

int tls_start_proxy ( struct tls_start_proxy_args  a,
void apparg 
)

Definition at line 197 of file easy-tls.c.

struct tls_start_proxy_args tls_start_proxy_defaultargs ( void  )
read

Definition at line 175 of file easy-tls.c.