diff options
author | David Shaw <[email protected]> | 2004-02-11 04:32:52 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-02-11 04:32:52 +0000 |
commit | 7198879ca8db7e5281a1503f1ed1636dc2c5c24f (patch) | |
tree | 29665490c870eb0e3b285f3704ef065d29fe982c /g10/keyid.c | |
parent | * keygen.c (keygen_set_std_prefs): Build the default preferences list at (diff) | |
download | gnupg-7198879ca8db7e5281a1503f1ed1636dc2c5c24f.tar.gz gnupg-7198879ca8db7e5281a1503f1ed1636dc2c5c24f.zip |
* keyedit.c (keyedit_menu): Prompt for subkey removal for both secret and
public subkeys.
* keylist.c (list_keyblock_print), keyedit.c (show_key_with_all_names):
Show the revocation date of a key/subkey, and general formatting work.
* packet.h, getkey.c (merge_selfsigs_main, merge_selfsigs_subkey,
merge_selfsigs): Keep track of the revocation date of a key.
* keydb.h, keyid.c (revokestr_from_pk): New function to print the
revocation date of a key.
Diffstat (limited to 'g10/keyid.c')
-rw-r--r-- | g10/keyid.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/g10/keyid.c b/g10/keyid.c index 0e2924c39..5ae286e89 100644 --- a/g10/keyid.c +++ b/g10/keyid.c @@ -1,5 +1,6 @@ /* keyid.c - key ID and fingerprint handling - * Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. + * Copyright (C) 1998, 1999, 2000, 2001, 2003, + * 2004 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -396,6 +397,18 @@ expirestr_from_sig( PKT_signature *sig ) } const char * +revokestr_from_pk( PKT_public_key *pk ) +{ + static char buffer[11+5]; + time_t atime; + + if(!pk->revokedate) + return _("never "); + atime=pk->revokedate; + return mk_datestr (buffer, atime); +} + +const char * colon_strtime (u32 t) { if (!t) |