library: Add compile option to disable memwipe() check
This commit is contained in:
parent
8806b00f43
commit
98b55c8b83
|
@ -241,6 +241,8 @@ static bool equals(char *a, char *b)
|
||||||
*/
|
*/
|
||||||
#define MEMWIPE_WIPE_WORDS 16
|
#define MEMWIPE_WIPE_WORDS 16
|
||||||
|
|
||||||
|
#ifndef NO_CHECK_MEMWIPE
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write magic to memory, and try to clear it with memwipe()
|
* Write magic to memory, and try to clear it with memwipe()
|
||||||
*/
|
*/
|
||||||
|
@ -281,6 +283,8 @@ static bool check_memwipe()
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* see header file
|
* see header file
|
||||||
*/
|
*/
|
||||||
|
@ -387,10 +391,12 @@ bool library_init(char *settings, const char *namespace)
|
||||||
this->public.streams = stream_manager_create();
|
this->public.streams = stream_manager_create();
|
||||||
this->public.plugins = plugin_loader_create();
|
this->public.plugins = plugin_loader_create();
|
||||||
|
|
||||||
|
#ifndef NO_CHECK_MEMWIPE
|
||||||
if (!check_memwipe())
|
if (!check_memwipe())
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (lib->settings->get_bool(lib->settings,
|
if (lib->settings->get_bool(lib->settings,
|
||||||
"%s.integrity_test", FALSE, lib->ns))
|
"%s.integrity_test", FALSE, lib->ns))
|
||||||
|
|
Loading…
Reference in New Issue