strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8806b00
)
library: Add compile option to disable memwipe() check
author
Tobias Brunner
<tobias@strongswan.org>
Wed, 19 Apr 2017 08:40:40 +0000
(10:40 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Tue, 23 May 2017 16:29:11 +0000
(18:29 +0200)
src/libstrongswan/library.c
patch
|
blob
|
history
diff --git
a/src/libstrongswan/library.c
b/src/libstrongswan/library.c
index
4f79dcc
..
1d1e1f0
100644
(file)
--- 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))