summaryrefslogtreecommitdiffstats
path: root/socket.cpp
diff options
context:
space:
mode:
authorfireice-uk <fireice2@o2.pl>2017-03-14 20:31:23 +0000
committerfireice-uk <fireice2@o2.pl>2017-03-14 20:31:23 +0000
commit15bba85ef9af05dbb95ff32474d9937bbeae52ea (patch)
tree9c639e10c73be7b781133ae73169c3bb2ae8d389 /socket.cpp
parente4f5318768d1987056b156f7eb45596d80af19c3 (diff)
downloadxmr-stak-15bba85ef9af05dbb95ff32474d9937bbeae52ea.zip
xmr-stak-15bba85ef9af05dbb95ff32474d9937bbeae52ea.tar.gz
CONF_NO_TLS option
Diffstat (limited to 'socket.cpp')
-rw-r--r--socket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/socket.cpp b/socket.cpp
index b472feb..565eb76 100644
--- a/socket.cpp
+++ b/socket.cpp
@@ -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
OpenPOWER on IntegriCloud