summaryrefslogtreecommitdiff
path: root/librabbitmq
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2023-02-01 11:49:31 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2023-02-01 09:04:05 -0500
commitd558e1274a45b68f61bb95620174f6164082a99a (patch)
tree9953ecfbd57624cc0ea070a61cc5b566b60649ff /librabbitmq
parent7fa7b0b1f54f9ca3d42056123f0e7fa21158bab7 (diff)
downloadrabbitmq-c-d558e1274a45b68f61bb95620174f6164082a99a.tar.gz
Define OPENSSL_API_COMPAT to 1.1.0 version.
This should stop warnings about deprecated APIs. RabbitMQ-c will adopt OpenSSL 3.x APIs in a future version. Fixed: #729 Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to 'librabbitmq')
-rw-r--r--librabbitmq/amqp_openssl.c3
-rw-r--r--librabbitmq/amqp_openssl_bio.h3
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);