mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpgsm: New option --no-pretty-dn
* sm/gpgsm.c (oNoPrettyDN): New. (opts): Add --no-pretty-dn. (main): Implement. * sm/gpgsm.h (opt): Add no_pretty_dn. * sm/certdump.c (gpgsm_es_print_name): Act upon.
This commit is contained in:
parent
e5066f2d1c
commit
e4ac3e7dec
4 changed files with 25 additions and 2 deletions
|
@ -728,7 +728,14 @@ gpgsm_es_print_name2 (estream_t fp, const char *name, int translate)
|
|||
void
|
||||
gpgsm_es_print_name (estream_t fp, const char *name)
|
||||
{
|
||||
gpgsm_es_print_name2 (fp, name, 1);
|
||||
if (opt.no_pretty_dn)
|
||||
{
|
||||
if (!name)
|
||||
name = "[error]";
|
||||
es_write_sanitized (fp, name, strlen (name), NULL, NULL);
|
||||
}
|
||||
else
|
||||
gpgsm_es_print_name2 (fp, name, 1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue