Use XMRIG_FEATURE_TLS instead of XMRIG_NO_TLS

This commit is contained in:
XMRig 2019-03-28 22:13:27 +07:00
parent 5db458efd4
commit 034720e888
8 changed files with 19 additions and 31 deletions

View file

@ -32,7 +32,7 @@
#endif
#ifndef XMRIG_NO_TLS
#ifdef XMRIG_FEATURE_TLS
# include <openssl/opensslv.h>
#endif
@ -77,7 +77,7 @@ static int showVersion()
printf("microhttpd/%s\n", MHD_get_version());
# endif
# if !defined(XMRIG_NO_TLS) && defined(OPENSSL_VERSION_TEXT)
# if defined(XMRIG_FEATURE_TLS) && defined(OPENSSL_VERSION_TEXT)
{
constexpr const char *v = OPENSSL_VERSION_TEXT + 8;
printf("OpenSSL/%.*s\n", static_cast<int>(strchr(v, ' ') - v), v);