Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

websSSL.c File Reference

#include "wsIntrn.h"
#include "webs.h"
#include "websSSL.h"

Defines

#define DEFAULT_CERT_FILE   "./server.pem"
#define DEFAULT_KEY_FILE   "./certs/cakey.pem"
#define DEFAULT_CA_FILE   "./certs/cacert.pem"
#define DEFAULT_CA_PATH   "./certs/"
#define SSL_PORT   443
#define do_pipe_sig()
#define apps_startup()   do_pipe_sig(); SSLC_add_all_algorithms();
#define BUF_BLOCK   256

Functions

void SSLC_add_all_algorithms (void)
static int websSSLSetCertStuff (SSL_CTX *ctx, char *cert_file, char *key_file)
static int websSSLVerifyCallback (int ok, X509_STORE_CTX *ctx)
static RSA * websSSLTempRSACallback (SSL *s, int is_export, int keylength)
static int websSSLReadEvent (webs_t wp)
static int websSSLAccept (int sid, char *ipaddr, int port, int listenSid)
static void websSSLSocketEvent (int sid, int mask, int data)
int websSSLOpen ()
int websSSLIsOpen ()
void websSSLClose ()
int websSSLSetCertFile (char_t *certFile)
int websSSLSetKeyFile (char_t *keyFile)
int websSSLFree (websSSL_t *wsp)
int websSSLEof (websSSL_t *wsp)
int websSSLRead (websSSL_t *wsp, char_t *buf, int len)
int websSSLGets (websSSL_t *wsp, char_t **buf)
int websSSLWrite (websSSL_t *wsp, char_t *buf, int len)
int websSSLFlush (websSSL_t *wsp)

Variables

static int sslListenSock = -1
static SSL_CTX * sslctx = NULL
static int sslVerifyDepth = 0
static int sslVerifyError = X509_V_OK

Define Documentation

 
#define apps_startup  )     do_pipe_sig(); SSLC_add_all_algorithms();
 

#define BUF_BLOCK   256
 

#define DEFAULT_CA_FILE   "./certs/cacert.pem"
 

#define DEFAULT_CA_PATH   "./certs/"
 

#define DEFAULT_CERT_FILE   "./server.pem"
 

#define DEFAULT_KEY_FILE   "./certs/cakey.pem"
 

 
#define do_pipe_sig  ) 
 

#define SSL_PORT   443
 


Function Documentation

void SSLC_add_all_algorithms void   ) 
 

int websSSLAccept int  sid,
char *  ipaddr,
int  port,
int  listenSid
[static]
 

void websSSLClose  ) 
 

int websSSLEof websSSL_t wsp  ) 
 

int websSSLFlush websSSL_t wsp  ) 
 

int websSSLFree websSSL_t wsp  ) 
 

int websSSLGets websSSL_t wsp,
char_t **  buf
 

int websSSLIsOpen  ) 
 

int websSSLOpen  ) 
 

int websSSLRead websSSL_t wsp,
char_t buf,
int  len
 

static int websSSLReadEvent webs_t  wp  )  [static]
 

int websSSLSetCertFile char_t certFile  ) 
 

int websSSLSetCertStuff SSL_CTX *  ctx,
char *  cert_file,
char *  key_file
[static]
 

int websSSLSetKeyFile char_t keyFile  ) 
 

static void websSSLSocketEvent int  sid,
int  mask,
int  data
[static]
 

static RSA * websSSLTempRSACallback SSL *  s,
int  is_export,
int  keylength
[static]
 

int websSSLVerifyCallback int  ok,
X509_STORE_CTX *  ctx
[static]
 

int websSSLWrite websSSL_t wsp,
char_t buf,
int  len
 


Variable Documentation

SSL_CTX* sslctx = NULL [static]
 

int sslListenSock = -1 [static]
 

int sslVerifyDepth = 0 [static]
 

int sslVerifyError = X509_V_OK [static]
 


Generated on Thu Mar 2 16:11:29 2006 for VDK Blacksheep by  doxygen 1.4.1