diff options
author | Werner Koch <[email protected]> | 2014-03-27 11:59:55 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-03-27 11:59:55 +0000 |
commit | 4f50ec98ddd57253cae66e2321f0cc98ee189a09 (patch) | |
tree | feb4dc9662cfd4a2833cfdcb8587d47939b49fd4 /common/ttyio.h | |
parent | agent: Replace es_mopen by es_fopenmem for ssh. (diff) | |
download | gnupg-4f50ec98ddd57253cae66e2321f0cc98ee189a09.tar.gz gnupg-4f50ec98ddd57253cae66e2321f0cc98ee189a09.zip |
Change some keyedit functions to allow printing to arbitrary streams.
* common/ttyio.c (tty_print_string): Add optional arg FP. Change all
callers.
(tty_print_utf8_string2): Ditto.
* g10/keyedit.c (show_prefs): Ditto.
(show_key_with_all_names_colon): Ditto.
(show_names): Ditto.
* g10/keylist.c (print_revokers): Ditto.
(print_fingerprint): Ditto.
Diffstat (limited to 'common/ttyio.h')
-rw-r--r-- | common/ttyio.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/ttyio.h b/common/ttyio.h index 5c810b8a5..0a66d8654 100644 --- a/common/ttyio.h +++ b/common/ttyio.h @@ -47,9 +47,10 @@ void tty_printf (const char *fmt, ... ); void tty_fprintf (estream_t fp, const char *fmt, ... ); char *tty_getf (const char *promptfmt, ... ); #endif -void tty_print_string (const unsigned char *p, size_t n); +void tty_print_string (estream_t fp, const unsigned char *p, size_t n); void tty_print_utf8_string (const unsigned char *p, size_t n); -void tty_print_utf8_string2 (const unsigned char *p, size_t n, size_t max_n); +void tty_print_utf8_string2 (estream_t fp, + const unsigned char *p, size_t n, size_t max_n); char *tty_get (const char *prompt); char *tty_get_hidden (const char *prompt); void tty_kill_prompt (void); |