OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
ssltest.c File Reference
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "e_os.h"
#include <ctype.h>
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/ssl.h>
#include <openssl/engine.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/dsa.h>
#include <openssl/dh.h>
#include <openssl/srp.h>
#include <openssl/bn.h>

Go to the source code of this file.

Classes

struct  app_verify_arg
 
struct  srp_client_arg_st
 
struct  srp_server_arg_st
 

Macros

#define _BSD_SOURCE
 
#define USE_SOCKETS
 
#define _XOPEN_SOURCE_EXTENDED
 
#define TEST_SERVER_CERT   "../apps/server.pem"
 
#define TEST_CLIENT_CERT   "../apps/client.pem"
 
#define COMP_RLE   255
 
#define COMP_ZLIB   1
 
#define APP_CALLBACK_STRING   "Test Callback Argument"
 
#define PWD_STRLEN   1024
 
#define W_READ   1
 
#define W_WRITE   2
 
#define C_DONE   1
 
#define S_DONE   2
 

Typedefs

typedef struct srp_client_arg_st SRP_CLIENT_ARG
 
typedef struct srp_server_arg_st SRP_SERVER_ARG
 

Functions

int doit_biopair (SSL *s_ssl, SSL *c_ssl, long bytes, clock_t *s_time, clock_t *c_time)
 
int doit (SSL *s_ssl, SSL *c_ssl, long bytes)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define _BSD_SOURCE
Value:
1 /* Or gethostname won't be declared properly
on Linux and GNU platforms. */

Definition at line 143 of file ssltest.c.

#define _XOPEN_SOURCE_EXTENDED
Value:
1 /* Or gethostname won't be declared properly
on Compaq platforms (at least with DEC C).
Do not try to put it earlier, or IPv6 includes
get screwed...
*/

Definition at line 188 of file ssltest.c.

#define APP_CALLBACK_STRING   "Test Callback Argument"

Definition at line 221 of file ssltest.c.

#define C_DONE   1

Definition at line 1537 of file ssltest.c.

#define COMP_RLE   255

Definition at line 212 of file ssltest.c.

#define COMP_ZLIB   1

Definition at line 213 of file ssltest.c.

#define PWD_STRLEN   1024

Definition at line 256 of file ssltest.c.

#define S_DONE   2

Definition at line 1538 of file ssltest.c.

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

Definition at line 207 of file ssltest.c.

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

Definition at line 206 of file ssltest.c.

#define USE_SOCKETS

Definition at line 153 of file ssltest.c.

#define W_READ   1

Definition at line 1535 of file ssltest.c.

#define W_WRITE   2

Definition at line 1536 of file ssltest.c.

Typedef Documentation

Function Documentation

int doit ( SSL s_ssl,
SSL c_ssl,
long  bytes 
)

Definition at line 1540 of file ssltest.c.

int doit_biopair ( SSL s_ssl,
SSL c_ssl,
long  bytes,
clock_t *  s_time,
clock_t *  c_time 
)

Definition at line 1146 of file ssltest.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 496 of file ssltest.c.