summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2019-12-25 06:27:56 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2019-12-24 23:46:09 -0700
commit73fbc3704a0ee312fe6d56a6bd92f10e0f05d92c (patch)
tree94e379fe134c0d4bc0a32973c301b4c36b856533
parent50c9be0b338497dba7368886121e7a84bb060e50 (diff)
downloadrabbitmq-c-73fbc3704a0ee312fe6d56a6bd92f10e0f05d92c.tar.gz
win32: disable secure CRT warnings in OpenSSL code
These warnings have been disabled in other parts of the code and are generally harmless. Recent refactoring in the amqp_openssl.c file have caused these warnings to appear. Fixes: #588
-rw-r--r--librabbitmq/amqp_openssl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/librabbitmq/amqp_openssl.c b/librabbitmq/amqp_openssl.c
index b6aaa70..52d351d 100644
--- a/librabbitmq/amqp_openssl.c
+++ b/librabbitmq/amqp_openssl.c
@@ -28,6 +28,10 @@
#include "config.h"
#endif
+#ifdef _MSC_VER
+#define _CRT_SECURE_NO_WARNINGS
+#endif
+
#include "amqp_openssl_bio.h"
#include "amqp_openssl_hostname_validation.h"
#include "amqp_private.h"