OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
s_cb.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "apps.h"
#include <openssl/err.h>
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/ssl.h>
#include "s_apps.h"

Go to the source code of this file.

Macros

#define USE_SOCKETS
 
#define NON_MAIN
 
#define COOKIE_SECRET_LENGTH   16
 

Functions

int MS_CALLBACK verify_callback (int ok, X509_STORE_CTX *ctx)
 
int set_cert_stuff (SSL_CTX *ctx, char *cert_file, char *key_file)
 
int set_cert_key_stuff (SSL_CTX *ctx, X509 *cert, EVP_PKEY *key)
 
long MS_CALLBACK bio_dump_callback (BIO *bio, int cmd, const char *argp, int argi, long argl, long ret)
 
void MS_CALLBACK apps_ssl_info_callback (const SSL *s, int where, int ret)
 
void MS_CALLBACK msg_cb (int write_p, int version, int content_type, const void *buf, size_t len, SSL *ssl, void *arg)
 
void MS_CALLBACK tlsext_cb (SSL *s, int client_server, int type, unsigned char *data, int len, void *arg)
 
int MS_CALLBACK generate_cookie_callback (SSL *ssl, unsigned char *cookie, unsigned int *cookie_len)
 
int MS_CALLBACK verify_cookie_callback (SSL *ssl, unsigned char *cookie, unsigned int cookie_len)
 

Variables

int verify_depth =0
 
int verify_error =X509_V_OK
 
int verify_return_error =0
 
unsigned char cookie_secret [COOKIE_SECRET_LENGTH]
 
int cookie_initialized =0
 

Macro Definition Documentation

#define COOKIE_SECRET_LENGTH   16

Definition at line 125 of file s_cb.c.

#define NON_MAIN

Definition at line 115 of file s_cb.c.

#define USE_SOCKETS

Definition at line 114 of file s_cb.c.

Function Documentation

void MS_CALLBACK apps_ssl_info_callback ( const SSL s,
int  where,
int  ret 
)

Definition at line 305 of file s_cb.c.

long MS_CALLBACK bio_dump_callback ( BIO bio,
int  cmd,
const char *  argp,
int  argi,
long  argl,
long  ret 
)

Definition at line 281 of file s_cb.c.

int MS_CALLBACK generate_cookie_callback ( SSL ssl,
unsigned char *  cookie,
unsigned int *  cookie_len 
)

Definition at line 761 of file s_cb.c.

void MS_CALLBACK msg_cb ( int  write_p,
int  version,
int  content_type,
const void buf,
size_t  len,
SSL ssl,
void arg 
)

Definition at line 342 of file s_cb.c.

int set_cert_key_stuff ( SSL_CTX ctx,
X509 cert,
EVP_PKEY key 
)

Definition at line 253 of file s_cb.c.

int set_cert_stuff ( SSL_CTX ctx,
char *  cert_file,
char *  key_file 
)

Definition at line 198 of file s_cb.c.

void MS_CALLBACK tlsext_cb ( SSL s,
int  client_server,
int  type,
unsigned char *  data,
int  len,
void arg 
)

Definition at line 656 of file s_cb.c.

static int MS_CALLBACK verify_callback ( int  ok,
X509_STORE_CTX ctx 
)

Definition at line 133 of file s_cb.c.

int MS_CALLBACK verify_cookie_callback ( SSL ssl,
unsigned char *  cookie,
unsigned int  cookie_len 
)

Definition at line 849 of file s_cb.c.

Variable Documentation

int cookie_initialized =0

Definition at line 131 of file s_cb.c.

unsigned char cookie_secret[COOKIE_SECRET_LENGTH]

Definition at line 130 of file s_cb.c.

int verify_depth =0

Definition at line 127 of file s_cb.c.

int verify_error =X509_V_OK

Definition at line 128 of file s_cb.c.

int verify_return_error =0

Definition at line 129 of file s_cb.c.