mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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
|
@ -170,6 +170,7 @@ enum cmd_and_opt_values {
|
|||
oWithKeyScreening,
|
||||
oAnswerYes,
|
||||
oAnswerNo,
|
||||
oNoPrettyDN,
|
||||
oKeyring,
|
||||
oDefaultKey,
|
||||
oDefRecipient,
|
||||
|
@ -385,7 +386,7 @@ static gpgrt_opt_t opts[] = {
|
|||
ARGPARSE_s_n (oWithKeygrip, "with-keygrip", "@"),
|
||||
ARGPARSE_s_n (oWithSecret, "with-secret", "@"),
|
||||
ARGPARSE_s_n (oWithKeyScreening,"with-key-screening", "@"),
|
||||
|
||||
ARGPARSE_s_n (oNoPrettyDN, "no-pretty-dn", "@"),
|
||||
|
||||
|
||||
ARGPARSE_header ("Security", N_("Options controlling the security")),
|
||||
|
@ -1318,6 +1319,10 @@ main ( int argc, char **argv)
|
|||
opt.with_key_screening = 1;
|
||||
break;
|
||||
|
||||
case oNoPrettyDN:
|
||||
opt.no_pretty_dn = 1;
|
||||
break;
|
||||
|
||||
case oHomedir: gnupg_set_homedir (pargs.r.ret_str); break;
|
||||
case oChUid: break; /* Command line only (see above). */
|
||||
case oAgentProgram: opt.agent_program = pargs.r.ret_str; break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue