33 lines
1023 B
Diff
33 lines
1023 B
Diff
From 23c8fd736abda6331e38ca045735d636390336f5 Mon Sep 17 00:00:00 2001
|
|
From: Alan Antonuk <alan.antonuk@gmail.com>
|
|
Date: Sat, 8 Sep 2018 11:48:35 -0700
|
|
Subject: [PATCH] OpenSSL should ignore missing config file
|
|
|
|
When initializing OpenSSL in v1.1.0 or later, tell OpenSSL to ignore
|
|
missing openssl.cnf.
|
|
|
|
Fixes #523
|
|
---
|
|
librabbitmq/amqp_openssl.c | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c
|
|
index bcd5ba5..1fac25d 100644
|
|
--- a/librabbitmq/amqp_openssl.c
|
|
+++ b/librabbitmq/amqp_openssl.c
|
|
@@ -584,8 +584,9 @@ static int setup_openssl(void) {
|
|
CRYPTO_set_locking_callback(ssl_locking_callback);
|
|
|
|
#ifdef AMQP_OPENSSL_V110
|
|
- if (CONF_modules_load_file(NULL, "rabbitmq-c", CONF_MFLAGS_DEFAULT_SECTION) <=
|
|
- 0) {
|
|
+ if (CONF_modules_load_file(
|
|
+ NULL, "rabbitmq-c",
|
|
+ CONF_MFLAGS_DEFAULT_SECTION | CONF_MFLAGS_IGNORE_MISSING_FILE) <= 0) {
|
|
status = AMQP_STATUS_SSL_ERROR;
|
|
goto out;
|
|
}
|
|
--
|
|
2.37.3.windows.1
|
|
|