summaryrefslogtreecommitdiff
path: root/crypto/mem_sec.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-10 03:54:45 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-10 04:14:35 +0100
commit183733f882056ea3e6fe95e665b85fcc6a45dcb4 (patch)
tree903bcbb113af99eeea4574c930f71a17ce16be0f /crypto/mem_sec.c
parent5abb2fc964cc4ea26dbddc8cf334f6958a63ee0f (diff)
downloadopenssl-new-183733f882056ea3e6fe95e665b85fcc6a45dcb4.tar.gz
Make sure to always include string.h so memset gets declared.
memset() is used by CRYPTO_secure_zalloc(), which isn't hidden away behind IMPLEMENTED. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/mem_sec.c')
-rw-r--r--crypto/mem_sec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c
index 6760cf40fc..196c2457ad 100644
--- a/crypto/mem_sec.c
+++ b/crypto/mem_sec.c
@@ -13,10 +13,11 @@
#include <openssl/crypto.h>
#include <e_os.h>
+#include <string.h>
+
#if defined(OPENSSL_SYS_LINUX) || defined(OPENSSL_SYS_UNIX)
# define IMPLEMENTED
# include <stdlib.h>
-# include <string.h>
# include <assert.h>
# include <unistd.h>
# include <sys/types.h>