Skip to content

Commit d558e12

Browse files
committed
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>
1 parent 7fa7b0b commit d558e12

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

librabbitmq/amqp_openssl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#define _CRT_SECURE_NO_WARNINGS
1010
#endif
1111

12+
// Use OpenSSL v1.1.0 API.
13+
#define OPENSSL_API_COMPAT 10100
14+
1215
#include "amqp_openssl_bio.h"
1316
#include "amqp_private.h"
1417
#include "amqp_socket.h"

librabbitmq/amqp_openssl_bio.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#ifndef AMQP_OPENSSL_BIO
55
#define AMQP_OPENSSL_BIO
66

7+
// Use OpenSSL v1.1.0 API.
8+
#define OPENSSL_API_COMPAT 10100
9+
710
#include <openssl/bio.h>
811

912
int amqp_openssl_bio_init(void);

0 commit comments

Comments
 (0)