summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2018-09-08 11:48:35 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2018-09-08 12:41:06 -0700
commit23c8fd736abda6331e38ca045735d636390336f5 (patch)
treedc789374d95e8035497f087daa4358d9fc4828ae
parent1fa5f63e6ba34d6d29fea7db62fde1b2bf96d914 (diff)
downloadrabbitmq-c-23c8fd736abda6331e38ca045735d636390336f5.tar.gz
OpenSSL should ignore missing config file
When initializing OpenSSL in v1.1.0 or later, tell OpenSSL to ignore missing openssl.cnf. Fixes #523
-rw-r--r--librabbitmq/amqp_openssl.c5
1 files 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;
}