mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
* util.h: Add wipememory() macro.
This commit is contained in:
parent
b9d7219150
commit
d284a4d200
@ -1,3 +1,7 @@
|
||||
2002-10-31 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* util.h: Add wipememory() macro.
|
||||
|
||||
2002-10-29 Stefan Bellon <sbellon@sbellon.de>
|
||||
|
||||
* util.h: Added parameter argument to make_basename() needed for
|
||||
|
@ -261,6 +261,8 @@ int vasprintf ( char **result, const char *format, va_list args);
|
||||
#define DIM(v) (sizeof(v)/sizeof((v)[0]))
|
||||
#define DIMof(type,member) DIM(((type *)0)->member)
|
||||
|
||||
#define wipememory(_ptr,_len) do { volatile char *_vptr=(volatile char *)(_ptr); size_t _vlen=(_len); while(_vlen) { *_vptr=0; _vptr++; _vlen--; } } while(0)
|
||||
|
||||
/******* RISC OS stuff ***********/
|
||||
#ifdef __riscos__
|
||||
/* needed for strcasecmp() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user