mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 07:27:23 +01:00
define OPENSSL_VERSION_PREREQ if not defined by OpenSSL
This commit is contained in:
parent
c087af6389
commit
6559c5bac7
@ -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.
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user