mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-18 05:51:45 +02:00
CONF_NO_TLS option
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user