diff options
author | Werner Koch <wk@gnupg.org> | 2020-02-13 14:01:07 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-02-13 14:07:09 +0100 |
commit | 86312b920a1d5817903d7175e9c2109bcf521b7c (patch) | |
tree | ca7c10e48d3777cb0f4e9f883aaedf372af77de8 /g10/import.c | |
parent | gpg: Changes to allow direct key generation from an OpenPGP card. (diff) | |
download | gnupg2-86312b920a1d5817903d7175e9c2109bcf521b7c.tar.xz gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'g10/import.c')
-rw-r--r-- | g10/import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/import.c b/g10/import.c index 911d0989c..5b50b722b 100644 --- a/g10/import.c +++ b/g10/import.c @@ -1411,7 +1411,7 @@ impex_filter_getval (void *cookie, const char *propname) } else if (!strcmp (propname, "sig_created_d")) { - result = datestr_from_sig (sig); + result = dateonlystr_from_sig (sig); } else if (!strcmp (propname, "sig_algo")) { @@ -1454,7 +1454,7 @@ impex_filter_getval (void *cookie, const char *propname) } else if (!strcmp (propname, "key_created_d")) { - result = datestr_from_pk (pk); + result = dateonlystr_from_pk (pk); } else if (!strcmp (propname, "expired")) { |