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-25 06:27:56 +0000
commitb7c10817faaa13562063a2f1872145435a7c5129 (patch)
tree94e379fe134c0d4bc0a32973c301b4c36b856533
parent50c9be0b338497dba7368886121e7a84bb060e50 (diff)
downloadrabbitmq-c-fix588.tar.gz
win32: disable secure CRT warnings in OpenSSL codefix588
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"