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 /g10/card-util.c | |
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 'g10/card-util.c')
-rw-r--r-- | g10/card-util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/card-util.c b/g10/card-util.c index c043b3e29..411a4d482 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -269,7 +269,7 @@ print_name (estream_t fp, const char *text, const char *name) if (fp) print_utf8_buffer2 (fp, name, strlen (name), '\n'); else - tty_print_utf8_string2 (name, strlen (name), 0); + tty_print_utf8_string2 (NULL, name, strlen (name), 0); } else tty_fprintf (fp, _("[not set]")); @@ -302,7 +302,7 @@ print_isoname (estream_t fp, const char *text, else if (fp) print_utf8_buffer2 (fp, given, strlen (given), '\n'); else - tty_print_utf8_string2 (given, strlen (given), 0); + tty_print_utf8_string2 (NULL, given, strlen (given), 0); if (opt.with_colons) es_putc (':', fp); @@ -315,7 +315,7 @@ print_isoname (estream_t fp, const char *text, else if (fp) print_utf8_buffer2 (fp, buf, strlen (buf), '\n'); else - tty_print_utf8_string2 (buf, strlen (buf), 0); + tty_print_utf8_string2 (NULL, buf, strlen (buf), 0); xfree (buf); } else |