diff options
| author | Werner Koch <[email protected]> | 2020-02-13 13:01:07 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2020-02-13 13:07:09 +0000 |
| commit | 86312b920a1d5817903d7175e9c2109bcf521b7c (patch) | |
| tree | ca7c10e48d3777cb0f4e9f883aaedf372af77de8 /g10/gpg.c | |
| parent | gpg: Changes to allow direct key generation from an OpenPGP card. (diff) | |
| download | gnupg-86312b920a1d5817903d7175e9c2109bcf521b7c.tar.gz gnupg-86312b920a1d5817903d7175e9c2109bcf521b7c.zip | |
gpg: New option --full-timestrings.
* g10/options.h (opt): Add flags.full_timestrings.
* g10/gpg.c (oFullTimestrings): New.
(opts): New option.
(main): Set new flag.
* g10/keyid.c (dateonlystr_from_pk): New.
(dateonlystr_from_sig): New.
(datestr_from_pk): Divert to isotimestamp if requested.
(datestr_from_sig): Ditto.
(expirestr_from_pk): Ditto.
(expirestr_from_sig): Ditto.
(revokestr_from_pk): Ditto.
* g10/import.c (impex_filter_getval): Use dateonlystr_from_sig and
dateonlystr_from_pk.
--
Quite helpful for debugging keys.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/gpg.c')
| -rw-r--r-- | g10/gpg.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -431,6 +431,7 @@ enum cmd_and_opt_values oRequestOrigin, oNoSymkeyCache, oUseOnlyOpenPGPCard, + oFullTimestrings, oNoop }; @@ -902,6 +903,7 @@ static ARGPARSE_OPTS opts[] = { ARGPARSE_s_n (oNoAutostart, "no-autostart", "@"), ARGPARSE_s_n (oNoSymkeyCache, "no-symkey-cache", "@"), ARGPARSE_s_n (oUseKeyboxd, "use-keyboxd", "@"), + ARGPARSE_s_n (oFullTimestrings, "full-timestrings", "@"), /* Options to override new security defaults. */ ARGPARSE_s_n (oAllowWeakKeySignatures, "allow-weak-key-signatures", "@"), @@ -3677,6 +3679,10 @@ main (int argc, char **argv) opt.flags.use_only_openpgp_card = 1; break; + case oFullTimestrings: + opt.flags.full_timestrings = 1; + break; + case oNoop: break; default: |
