diff options
author | Werner Koch <[email protected]> | 2002-02-07 18:43:22 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-02-07 18:43:22 +0000 |
commit | 2a28f5d0aece3300dea950b6f9bed9dbc1f01fa7 (patch) | |
tree | 5ca0c73c6b9289476447ed726b0bd8b1ec6b355c /sm/keylist.c | |
parent | * decrypt.c (gpgsm_decrypt): Bail out after an decryption error. (diff) | |
download | gnupg-2a28f5d0aece3300dea950b6f9bed9dbc1f01fa7.tar.gz gnupg-2a28f5d0aece3300dea950b6f9bed9dbc1f01fa7.zip |
* certlist.c (gpgsm_add_to_certlist): Check that the specified
name identifies a certificate unambiguously.
(gpgsm_find_cert): Ditto.
* server.c (cmd_listkeys): Check that the data stream is available.
(cmd_listsecretkeys): Ditto.
(has_option): New.
(cmd_sign): Fix ambiguousity in option recognition.
* gpgsm.c (main): Enable --logger-fd.
* encrypt.c (gpgsm_encrypt): Increased buffer size for better
performance.
* call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from
the agent.
* keylist.c (list_cert_colon): Filter out control characters.
Diffstat (limited to 'sm/keylist.c')
-rw-r--r-- | sm/keylist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sm/keylist.c b/sm/keylist.c index 0050ac464..f681725b7 100644 --- a/sm/keylist.c +++ b/sm/keylist.c @@ -165,7 +165,7 @@ list_cert_colon (KsbaCert cert, FILE *fp, int have_secret) putc (':', fp); if ((p = ksba_cert_get_issuer (cert,0))) { - fputs (p, fp); /* FIXME: Escape colons and linefeeds */ + print_sanitized_string (fp, p, ':'); xfree (p); } putc (':', fp); @@ -188,7 +188,7 @@ list_cert_colon (KsbaCert cert, FILE *fp, int have_secret) for (idx=0; (p = ksba_cert_get_subject (cert,idx)); idx++) { fprintf (fp, "uid:%c::::::::", trustletter); - fputs (p, fp); /* FIXME: Escape colons and linefeeds */ + print_sanitized_string (fp, p, ':'); putc (':', fp); putc (':', fp); putc ('\n', fp); @@ -202,7 +202,7 @@ list_cert_colon (KsbaCert cert, FILE *fp, int have_secret) if (pp) { fprintf (fp, "uid:%c::::::::", trustletter); - fputs (pp, fp); /* FIXME: Escape colons and linefeeds */ + print_sanitized_string (fp, pp, ':'); putc (':', fp); putc (':', fp); putc ('\n', fp); |