From 4befeabc8786f4848166555a670b12e90758563b Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 15 Aug 2017 23:06:08 -0400 Subject: [PATCH] added flag for older openssls --- nucleus/library/crypto/ssl_init.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nucleus/library/crypto/ssl_init.h b/nucleus/library/crypto/ssl_init.h index 9ea05d79..a0d78bc2 100644 --- a/nucleus/library/crypto/ssl_init.h +++ b/nucleus/library/crypto/ssl_init.h @@ -28,13 +28,13 @@ namespace crypto { very bottom and it will be managed globally for the entire program. */ -//// //we define NEWER_OPENSSL for those places where we're using openssl 1.1.1. -//// #if defined(_MSC_VER) +// we define NEWER_OPENSSL for those places where we're using more recent versions. +#if OPENSSL_VERSION_NUMBER > 0x10100000L #define NEWER_OPENSSL //hmmm: to be cleaned up; should assume only new ssl from now on. -//// #else -//// // #define OLDER_OPENSSL -//// #endif +#else +// #define OLDER_OPENSSL +#endif class ssl_init : public virtual basis::nameable { -- 2.34.1