X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fcrypto%2Fssl_init.h;h=27b52d9624c11d4ad4b7271f38dbfc1fa64829de;hb=3475ea0f35f499fc602826d428a4f152cb6c8920;hp=ece041c565b6e7332b2a1f647e8b9dae5e72e350;hpb=68c13351f6768d8104716fc5757fbaf11bb02519;p=feisty_meow.git diff --git a/nucleus/library/crypto/ssl_init.h b/nucleus/library/crypto/ssl_init.h index ece041c5..27b52d96 100644 --- a/nucleus/library/crypto/ssl_init.h +++ b/nucleus/library/crypto/ssl_init.h @@ -18,6 +18,8 @@ #include #include +#include + namespace crypto { //! provides some initialization for the RSA and blowfish crypto. @@ -28,11 +30,10 @@ 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. -#ifdef _MSC_VER +// we define NEWER_OPENSSL for those places where we're using more recent versions. +// this forces the code to choose newer methods over deprecated ones. +#if OPENSSL_VERSION_NUMBER > 0x10100000L #define NEWER_OPENSSL -#else -// #define OLDER_OPENSSL #endif class ssl_init : public virtual basis::nameable