#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.
|
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) |
|
#define COOKIE_SECRET_LENGTH 16 |
long MS_CALLBACK bio_dump_callback |
( |
BIO * |
bio, |
|
|
int |
cmd, |
|
|
const char * |
argp, |
|
|
int |
argi, |
|
|
long |
argl, |
|
|
long |
ret |
|
) |
| |
int MS_CALLBACK generate_cookie_callback |
( |
SSL * |
ssl, |
|
|
unsigned char * |
cookie, |
|
|
unsigned int * |
cookie_len |
|
) |
| |
int set_cert_stuff |
( |
SSL_CTX * |
ctx, |
|
|
char * |
cert_file, |
|
|
char * |
key_file |
|
) |
| |
void MS_CALLBACK tlsext_cb |
( |
SSL * |
s, |
|
|
int |
client_server, |
|
|
int |
type, |
|
|
unsigned char * |
data, |
|
|
int |
len, |
|
|
void * |
arg |
|
) |
| |
int MS_CALLBACK verify_cookie_callback |
( |
SSL * |
ssl, |
|
|
unsigned char * |
cookie, |
|
|
unsigned int |
cookie_len |
|
) |
| |
int cookie_initialized =0 |
int verify_return_error =0 |