From: Chris Koeritz Date: Wed, 16 Aug 2017 03:06:08 +0000 (-0400) Subject: added flag for older openssls X-Git-Tag: 2.140.90~163 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=4befeabc8786f4848166555a670b12e90758563b added flag for older openssls --- 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 {