aboutsummaryrefslogtreecommitdiffstats
path: root/common/stringhelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-01-28 19:12:21 +0000
committerWerner Koch <[email protected]>2015-01-28 19:12:21 +0000
commitd8eea25b8b7becbfa3f059be6f5966a2f1aa7112 (patch)
tree6e82e33f1237fb15bce50726f5502f1af5d3e105 /common/stringhelp.h
parentAdd a hook to be called right after main. (diff)
downloadgnupg-d8eea25b8b7becbfa3f059be6f5966a2f1aa7112.tar.gz
gnupg-d8eea25b8b7becbfa3f059be6f5966a2f1aa7112.zip
gpg: Fix buffering problem in --list-config.
* g10/gpg.c (list_config): Replace print_sanitized_string2 by es_write_sanitized. * common/stringhelp.c (print_sanitized_buffer2): Remove. (print_sanitized_buffer, print_sanitized_utf8_buffer): Remove. (print_sanitized_utf8_buffer, print_sanitized_utf8_string): Remove. (print_sanitized_string): Remove. * sm/certdump.c (print_dn_part, print_dn_parts): Remove arg FP. (pretty_print_sexp, gpgsm_print_name2, gpgsm_print_name): Remove. -- Mixing stdio and estream is never a good idea. This fix also allows us to remove a lot of garbage. Reported-by: Jason A. Donenfeld <[email protected]> GnuPG-bug-id: 1822 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--common/stringhelp.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/common/stringhelp.h b/common/stringhelp.h
index 1d3ee7237..d4fe169a7 100644
--- a/common/stringhelp.h
+++ b/common/stringhelp.h
@@ -60,16 +60,6 @@ int compare_filenames( const char *a, const char *b );
int hextobyte (const char *s);
-size_t print_sanitized_buffer (FILE *fp, const void *buffer, size_t length,
- int delim);
-size_t print_sanitized_buffer2 (FILE *fp, const void *buffer, size_t length,
- int delim, int delim2);
-size_t print_sanitized_utf8_buffer (FILE *fp, const void *buffer,
- size_t length, int delim);
-size_t print_sanitized_string (FILE *fp, const char *string, int delim);
-size_t print_sanitized_string2 (FILE *fp, const char *string,
- int delim, int delim2);
-size_t print_sanitized_utf8_string (FILE *fp, const char *string, int delim);
char *sanitize_buffer (const void *p, size_t n, int delim);