diff options
Diffstat (limited to 'librabbitmq')
-rw-r--r-- | librabbitmq/amqp_openssl.c | 3 | ||||
-rw-r--r-- | librabbitmq/amqp_openssl_bio.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c index 213a4da..998c7b4 100644 --- a/librabbitmq/amqp_openssl.c +++ b/librabbitmq/amqp_openssl.c @@ -9,6 +9,9 @@ #define _CRT_SECURE_NO_WARNINGS #endif +// Use OpenSSL v1.1.0 API. +#define OPENSSL_API_COMPAT 10100 + #include "amqp_openssl_bio.h" #include "amqp_private.h" #include "amqp_socket.h" diff --git a/librabbitmq/amqp_openssl_bio.h b/librabbitmq/amqp_openssl_bio.h index ff3f0b6..f3e5b7f 100644 --- a/librabbitmq/amqp_openssl_bio.h +++ b/librabbitmq/amqp_openssl_bio.h @@ -4,6 +4,9 @@ #ifndef AMQP_OPENSSL_BIO #define AMQP_OPENSSL_BIO +// Use OpenSSL v1.1.0 API. +#define OPENSSL_API_COMPAT 10100 + #include <openssl/bio.h> int amqp_openssl_bio_init(void); |