diff options
author | Jussi Kivilinna <[email protected]> | 2018-12-01 11:43:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-12-05 07:23:57 +0000 |
commit | 21fdef6963539680a16b68b7536378bdaa8dea85 (patch) | |
tree | cdb8293e24c22d2efef5b1865c9eac207922c7ab /tools/wks-util.c | |
parent | gpg: Improve error message about failed keygrip computation. (diff) | |
download | gnupg-21fdef6963539680a16b68b7536378bdaa8dea85.tar.gz gnupg-21fdef6963539680a16b68b7536378bdaa8dea85.zip |
common: Use platform memory zeroing function for wipememory
* common/mischelp.h (wipememory): Replace macro with function
prototype.
(wipememory2): Remove.
* common/mischelp.c (wipememory): New.
* configure.ac (AC_CHECK_FUNCS): Check for 'explicit_bzero' and
remove duplicated checks.
--
In new wipememory function, memory is cleared through platform
provided secure memory zeroing function, SecureZeroMemory
or explicit_bzero.
If none of these is available, memset is called through
volatile function pointer to so that compiler won't optimize
away the call.
Signed-off-by: Jussi Kivilinna <[email protected]>
(cherry picked from commit 2a650772b4e1c78a4fd20bc88433930e5551fe9c)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions