Files
bitchx/include/ssl.h
Kevin Easton 7642e741b9 Switch to using NULL server.ssl_fd to mark new SSL connection instead of NULL server.ctx
server.ctx is now allocated once for each server on first connection, then reused for subsequent connections.

server.ctx wasn't being cleared when the server was closed (as server.ssl_fd is), so this was causing
reconnection to fail until try_connect() got called.

This also removes the last uses of the CHK_* macros in ssl.h, so remove them.
2017-12-03 02:16:39 +11:00

29 lines
466 B
C

#ifndef SSL_H_
#define SSL_H_
#if defined(HAVE_LIBSSL) && !defined(IN_MODULE)
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#ifndef TRUE
#define TRUE 0
#endif
#ifndef FALSE
#define FALSE 1
#endif
void SSL_show_errors(void);
/* Make these what you want for cert & key files */
/*extern SSL_CTX* ctx;*/
/*extern SSL_METHOD *meth;*/
#endif
#endif