diff options
author | Richard Levitte <levitte@openssl.org> | 2016-02-10 03:54:45 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-02-10 04:14:35 +0100 |
commit | 183733f882056ea3e6fe95e665b85fcc6a45dcb4 (patch) | |
tree | 903bcbb113af99eeea4574c930f71a17ce16be0f /crypto/mem_sec.c | |
parent | Don't run RC4 test with no-rc4 (diff) | |
download | openssl-183733f882056ea3e6fe95e665b85fcc6a45dcb4.tar.xz openssl-183733f882056ea3e6fe95e665b85fcc6a45dcb4.zip |
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.c | 3 |
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> |