projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5abb2fc
)
Make sure to always include string.h so memset gets declared.
author
Richard Levitte
<levitte@openssl.org>
Wed, 10 Feb 2016 02:54:45 +0000
(
03:54
+0100)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 10 Feb 2016 03:14:35 +0000
(
04:14
+0100)
memset() is used by CRYPTO_secure_zalloc(), which isn't hidden away
behind IMPLEMENTED.
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/mem_sec.c
patch
|
blob
|
history
diff --git
a/crypto/mem_sec.c
b/crypto/mem_sec.c
index 6760cf40fc52a0c91e2188390682ecc77741879f..196c2457ad806828c6b5fbf18db6581397a08a7b 100644
(file)
--- 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>