define OPENSSL_VERSION_PREREQ if not defined by OpenSSL

This commit is contained in:
Günter Obiltschnig 2019-06-23 08:26:56 +02:00
parent c087af6389
commit 6559c5bac7

View File

@ -20,12 +20,6 @@
#define Crypto_Crypto_INCLUDED
#if defined(__APPLE__)
// OS X 10.7 deprecates some OpenSSL functions
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#define POCO_EXTERNAL_OPENSSL_DEFAULT 1
#define POCO_EXTERNAL_OPENSSL_SLPRO 2
@ -34,6 +28,12 @@
#include <openssl/opensslv.h>
#ifndef OPENSSL_VERSION_PREREQ
#define OPENSSL_VERSION_PREREQ(maj, min) \
((OPENSSL_VERSION_MAJOR << 16) + OPENSSL_VERSION_MINOR >= ((maj) << 16) + (min))
#endif
enum RSAPaddingMode
/// The padding mode used for RSA public key encryption.
{