From 49507cf6977f6c9fce1b651ae808e37b63fc3e4e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 6 Feb 2024 17:03:33 +0100 Subject: 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. --- NEWS | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index a8b60f4..3a8e367 100644 --- a/NEWS +++ b/NEWS @@ -4,12 +4,29 @@ Noteworthy changes in version 1.48 (unreleased) [C34/A34/R_] * New configure option --with-libtool-modification. [T6619] * New option parser flag to detect commands given without a double - dash. There is also the new meta command [command-mode] to set + dash. There is also the new meta command "command-mode" to set this flag via a config file. [T6978] + * Added an es_fopen mode flag "sequential" with support on Windows. + [rE7a42ff0ec9] + + * Added an es_fopen mode flag "wipe" to cleanup internal buffers at + close time. [T6954] + + * New function gpgrt_wipememory. [T6964] + + * Improvements to setenv on Windows. [rE89e53ad90f] + + * Fixed call to estream-printf string filters. [T6737] + + * Many improvements to the yat2m tool. + + * Updates to the build system. + * Interface changes relative to the 1.47 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ARGPARSE_FLAG_COMMAND NEW. + gpgrt_wipememory NEW. Release-info: https://dev.gnupg.org/T6441 -- cgit