OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
state_machine.c File Reference
#include <openssl/ssl.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
#include <openssl/err.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

Go to the source code of this file.

Classes

struct  SSLStateMachine
 

Macros

#define die_unless(x)   assert(x)
 

Functions

void SSLStateMachine_print_error (SSLStateMachine *pMachine, const char *szErr)
 
SSLStateMachineSSLStateMachine_new (const char *szCertificateFile, const char *szKeyFile)
 
void SSLStateMachine_read_inject (SSLStateMachine *pMachine, const unsigned char *aucBuf, int nBuf)
 
int SSLStateMachine_read_extract (SSLStateMachine *pMachine, unsigned char *aucBuf, int nBuf)
 
int SSLStateMachine_write_can_extract (SSLStateMachine *pMachine)
 
int SSLStateMachine_write_extract (SSLStateMachine *pMachine, unsigned char *aucBuf, int nBuf)
 
void SSLStateMachine_write_inject (SSLStateMachine *pMachine, const unsigned char *aucBuf, int nBuf)
 
int OpenSocket (int nPort)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define die_unless (   x)    assert(x)

Definition at line 89 of file state_machine.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 288 of file state_machine.c.

int OpenSocket ( int  nPort)

Definition at line 236 of file state_machine.c.

SSLStateMachine* SSLStateMachine_new ( const char *  szCertificateFile,
const char *  szKeyFile 
)

Definition at line 113 of file state_machine.c.

void SSLStateMachine_print_error ( SSLStateMachine pMachine,
const char *  szErr 
)

Definition at line 99 of file state_machine.c.

int SSLStateMachine_read_extract ( SSLStateMachine pMachine,
unsigned char *  aucBuf,
int  nBuf 
)

Definition at line 157 of file state_machine.c.

void SSLStateMachine_read_inject ( SSLStateMachine pMachine,
const unsigned char *  aucBuf,
int  nBuf 
)

Definition at line 145 of file state_machine.c.

int SSLStateMachine_write_can_extract ( SSLStateMachine pMachine)

Definition at line 203 of file state_machine.c.

int SSLStateMachine_write_extract ( SSLStateMachine pMachine,
unsigned char *  aucBuf,
int  nBuf 
)

Definition at line 214 of file state_machine.c.

void SSLStateMachine_write_inject ( SSLStateMachine pMachine,
const unsigned char *  aucBuf,
int  nBuf 
)

Definition at line 224 of file state_machine.c.