CONF_NO_TLS option

This commit is contained in:
fireice-uk
2017-03-14 20:31:23 +00:00
parent e4f5318768
commit 15bba85ef9
4 changed files with 21 additions and 0 deletions
+4
View File
@@ -27,6 +27,7 @@
#include "console.h"
#include "executor.h"
#ifndef CONF_NO_TLS
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <openssl/opensslconf.h>
@@ -34,6 +35,7 @@
#ifndef OPENSSL_THREADS
#error OpenSSL was compiled without thread support
#endif
#endif
plain_socket::plain_socket(jpsock* err_callback) : pCallback(err_callback)
{
@@ -166,6 +168,7 @@ void plain_socket::close(bool free)
}
}
#ifndef CONF_NO_TLS
tls_socket::tls_socket(jpsock* err_callback) : pCallback(err_callback)
{
}
@@ -355,4 +358,5 @@ void tls_socket::close(bool free)
bio = nullptr;
}
}
#endif