diff options
author | Werner Koch <[email protected]> | 2024-02-06 16:03:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-02-06 16:03:42 +0000 |
commit | 49507cf6977f6c9fce1b651ae808e37b63fc3e4e (patch) | |
tree | 139c13024b183ebe1ae00597c2113b74d68eaa1d /src/argparse.c | |
parent | core: New function gpgrt_wipememory. (diff) | |
download | libgpg-error-49507cf6977f6c9fce1b651ae808e37b63fc3e4e.tar.gz libgpg-error-49507cf6977f6c9fce1b651ae808e37b63fc3e4e.zip |
core: Add "wipe" mode flag.
* src/gpgrt-int.h (struct _gpgrt_stream_internal): Add field "wipe".
* src/estream.c (mem_free2): New.
(struct estream_cookie_mem): Add flag "wipe".
(func_mem_create): Add arg wipe.
(func_mem_destroy): Wipe.
(X_WIPE): New.
(parse_mode): Parse "wipe" mode flag.
(init_stream_obj): Set it.
(do_close): Wipe internal struct with its static buffers.
(doreadline): Pass wipe mode along to help buffer.
(_gpgrt_mopen): Pass wipe mode.
(_gpgrt_fopenmem): Ditto.
--
GnuPG-bug-id: 6954
This is likely not complete but should wipe out buffers allocated by
fopenmem.
Diffstat (limited to 'src/argparse.c')
0 files changed, 0 insertions, 0 deletions