diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-04-19 10:40:40 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-05-23 18:29:11 +0200 |
commit | 98b55c8b838675fa8e598701a4b50308b41c6a9d (patch) | |
tree | efb36dfec41798d0b0a5ed6424a99c78333e3aa8 /src | |
parent | 8806b00f43895b948a0514c550c2beca99723edf (diff) | |
download | strongswan-98b55c8b838675fa8e598701a4b50308b41c6a9d.tar.bz2 strongswan-98b55c8b838675fa8e598701a4b50308b41c6a9d.tar.xz |
library: Add compile option to disable memwipe() check
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/library.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c index 4f79dcc5b..1d1e1f07e 100644 --- a/src/libstrongswan/library.c +++ b/src/libstrongswan/library.c @@ -241,6 +241,8 @@ static bool equals(char *a, char *b) */ #define MEMWIPE_WIPE_WORDS 16 +#ifndef NO_CHECK_MEMWIPE + /** * Write magic to memory, and try to clear it with memwipe() */ @@ -281,6 +283,8 @@ static bool check_memwipe() return TRUE; } +#endif + /* * see header file */ @@ -387,10 +391,12 @@ bool library_init(char *settings, const char *namespace) this->public.streams = stream_manager_create(); this->public.plugins = plugin_loader_create(); +#ifndef NO_CHECK_MEMWIPE if (!check_memwipe()) { return FALSE; } +#endif if (lib->settings->get_bool(lib->settings, "%s.integrity_test", FALSE, lib->ns)) |