26 #include <sys/socket.h>
29 #include <openssl/ssl.h>
32 #define CLIENT_AUTH_REQUEST 1
33 #define CLIENT_AUTH_REQUIRE 2
34 #define CLIENT_AUTH_REHANDSHAKE 3
43 static int s_server_session_id_context;
44 static int s_server_auth_session_id_context;
47 static int password_cb(
char *buf,
int num,
int rwflag,
void *userdata);
48 void load_dh_params(SSL_CTX *ctx,
char *file);
49 static void sigpipe_handle(
int x);
50 SSL_CTX *initialize_ctx(
char *keyfile,
char *password,
string ca_list);
51 void destroy_ctx(SSL_CTX *ctx);
52 void error_occurred(
char *error,
int fd,SSL *ssl);
53 void closeSSL(
int fd,SSL *ssl,BIO* bio);