#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.
|
void | SSLStateMachine_print_error (SSLStateMachine *pMachine, const char *szErr) |
|
SSLStateMachine * | SSLStateMachine_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) |
|
#define die_unless |
( |
|
x | ) |
assert(x) |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
int OpenSocket |
( |
int |
nPort | ) |
|
SSLStateMachine* SSLStateMachine_new |
( |
const char * |
szCertificateFile, |
|
|
const char * |
szKeyFile |
|
) |
| |
int SSLStateMachine_read_extract |
( |
SSLStateMachine * |
pMachine, |
|
|
unsigned char * |
aucBuf, |
|
|
int |
nBuf |
|
) |
| |
void SSLStateMachine_read_inject |
( |
SSLStateMachine * |
pMachine, |
|
|
const unsigned char * |
aucBuf, |
|
|
int |
nBuf |
|
) |
| |
int SSLStateMachine_write_extract |
( |
SSLStateMachine * |
pMachine, |
|
|
unsigned char * |
aucBuf, |
|
|
int |
nBuf |
|
) |
| |
void SSLStateMachine_write_inject |
( |
SSLStateMachine * |
pMachine, |
|
|
const unsigned char * |
aucBuf, |
|
|
int |
nBuf |
|
) |
| |