OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
mttest.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <openssl/lhash.h>
#include <openssl/crypto.h>
#include <openssl/buffer.h>
#include "../../e_os.h"
#include <openssl/x509.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>

Go to the source code of this file.

Macros

#define TEST_SERVER_CERT   "../../apps/server.pem"
 
#define TEST_CLIENT_CERT   "../../apps/client.pem"
 
#define MAX_THREAD_NUMBER   100
 
#define W_READ   1
 
#define W_WRITE   2
 
#define C_DONE   1
 
#define S_DONE   2
 
#define THREAD_STACK_SIZE   (16*1024)
 

Functions

int MS_CALLBACK verify_callback (int ok, X509_STORE_CTX *xs)
 
void thread_setup (void)
 
void thread_cleanup (void)
 
void do_threads (SSL_CTX *s_ctx, SSL_CTX *c_ctx)
 
void irix_locking_callback (int mode, int type, char *file, int line)
 
void solaris_locking_callback (int mode, int type, char *file, int line)
 
void win32_locking_callback (int mode, int type, char *file, int line)
 
void pthreads_locking_callback (int mode, int type, char *file, int line)
 
void netware_locking_callback (int mode, int type, char *file, int line)
 
void beos_locking_callback (int mode, int type, const char *file, int line)
 
unsigned long irix_thread_id (void)
 
unsigned long solaris_thread_id (void)
 
unsigned long pthreads_thread_id (void)
 
unsigned long netware_thread_id (void)
 
unsigned long beos_thread_id (void)
 
int doit (char *ctx[4])
 
int main (int argc, char *argv[])
 
int ndoit (SSL_CTX *ssl_ctx[2])
 

Variables

BIObio_err =NULL
 
BIObio_stdout =NULL
 
int verbose =0
 
int thread_number =10
 
int number_of_loops =10
 
int reconnect =0
 
int cache_stats =0
 

Macro Definition Documentation

#define C_DONE   1

Definition at line 367 of file mttest.c.

#define MAX_THREAD_NUMBER   100

Definition at line 108 of file mttest.c.

#define S_DONE   2

Definition at line 368 of file mttest.c.

#define TEST_CLIENT_CERT   "../../apps/client.pem"

Definition at line 105 of file mttest.c.

#define TEST_SERVER_CERT   "../../apps/server.pem"

Definition at line 104 of file mttest.c.

#define THREAD_STACK_SIZE   (16*1024)

Definition at line 720 of file mttest.c.

#define W_READ   1

Definition at line 365 of file mttest.c.

#define W_WRITE   2

Definition at line 366 of file mttest.c.

Function Documentation

void beos_locking_callback ( int  mode,
int  type,
const char *  file,
int  line 
)
unsigned long beos_thread_id ( void  )
void do_threads ( SSL_CTX s_ctx,
SSL_CTX c_ctx 
)
int doit ( char *  ctx[4])

Definition at line 419 of file mttest.c.

void irix_locking_callback ( int  mode,
int  type,
char *  file,
int  line 
)
unsigned long irix_thread_id ( void  )
int main ( int  argc,
char *  argv[] 
)

Definition at line 186 of file mttest.c.

int ndoit ( SSL_CTX ssl_ctx[2])

Definition at line 370 of file mttest.c.

void netware_locking_callback ( int  mode,
int  type,
char *  file,
int  line 
)
unsigned long netware_thread_id ( void  )
void pthreads_locking_callback ( int  mode,
int  type,
char *  file,
int  line 
)
unsigned long pthreads_thread_id ( void  )
void solaris_locking_callback ( int  mode,
int  type,
char *  file,
int  line 
)
unsigned long solaris_thread_id ( void  )
void thread_cleanup ( void  )
void thread_setup ( void  )
int MS_CALLBACK verify_callback ( int  ok,
X509_STORE_CTX xs 
)
void win32_locking_callback ( int  mode,
int  type,
char *  file,
int  line 
)

Variable Documentation

BIO* bio_err =NULL

Definition at line 134 of file mttest.c.

BIO* bio_stdout =NULL

Definition at line 135 of file mttest.c.

int cache_stats =0

Definition at line 146 of file mttest.c.

int number_of_loops =10

Definition at line 144 of file mttest.c.

int reconnect =0

Definition at line 145 of file mttest.c.

int thread_number =10

Definition at line 143 of file mttest.c.

int verbose =0

Definition at line 138 of file mttest.c.