#include "webserver/sslops.h"
#include "webserver/webserver.h"
#include "logging.h"
#include <pthread.h>
#include <openssl/err.h>
Go to the source code of this file.
| #define CHECK_SSL_WANTS |
( |
|
ssl, |
|
|
|
rtn |
|
) |
| |
Value:do { \
int err = SSL_get_error(ssl, rtn); \
if (err != SSL_ERROR_WANT_READ && err != SSL_ERROR_WANT_WRITE) {
\
} else if ( err == SSL_ERROR_WANT_READ) { \
} else if ( err == SSL_ERROR_WANT_WRITE) { \
} \
} while (0);
#define WS_INCOMPLETE_READ
#define WS_INCOMPLETE_WRITE
#define print_ssl_error(ssl, rtn)
Explains an SSL error.
Definition at line 182 of file sslops.c.
| #define print_request_error |
( |
|
... | ) |
|
| #define print_ssl_error |
( |
|
ssl, |
|
|
|
rtn |
|
) |
| |
Explains an SSL error.
Written as a macro so we have traceability in the log_error statements
Definition at line 89 of file sslops.c.
| int accept_ssl |
( |
SSL * |
ssl | ) |
|
| int close_ssl |
( |
SSL * |
ssl | ) |
|
| static unsigned long crypto_id_function |
( |
void |
| ) |
|
|
static |
| static void crypto_locking_callback |
( |
int |
mode, |
|
|
int |
n, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
|
static |
| SSL* init_ssl_connection |
( |
int |
fd | ) |
|
| int init_ssl_context |
( |
void |
| ) |
|
| void init_ssl_locks |
( |
void |
| ) |
|
| void kill_ssl_locks |
( |
void |
| ) |
|
| int load_ssl_certificate |
( |
char * |
cert_file, |
|
|
char * |
key_file |
|
) |
| |
| int read_ssl |
( |
SSL * |
ssl, |
|
|
char * |
buf, |
|
|
int * |
buf_size |
|
) |
| |
| int write_ssl |
( |
SSL * |
ssl, |
|
|
char * |
buf, |
|
|
int * |
buf_size |
|
) |
| |
| pthread_mutex_t* lockarray |
|
static |