mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
* util.h: Add wipememory() macro.
This commit is contained in:
parent
321b88d0f6
commit
8be3f3e80c
@ -1,3 +1,7 @@
|
|||||||
|
2002-10-31 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* util.h: Add wipememory() macro.
|
||||||
|
|
||||||
2002-10-21 Werner Koch <wk@gnupg.org>
|
2002-10-21 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
* util.h [__CYGWIN32__]: Don't need the registry prototypes.
|
* util.h [__CYGWIN32__]: Don't need the registry prototypes.
|
||||||
|
@ -257,6 +257,8 @@ int vasprintf ( char **result, const char *format, va_list args);
|
|||||||
#define DIM(v) (sizeof(v)/sizeof((v)[0]))
|
#define DIM(v) (sizeof(v)/sizeof((v)[0]))
|
||||||
#define DIMof(type,member) DIM(((type *)0)->member)
|
#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 ***********/
|
/******* RISC OS stuff ***********/
|
||||||
#ifdef __riscos__
|
#ifdef __riscos__
|
||||||
/* needed for strcasecmp() */
|
/* needed for strcasecmp() */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user