aboutsummaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-12-30 03:26:57 +0000
committerDavid Shaw <[email protected]>2004-12-30 03:26:57 +0000
commitb37facc5939cf7bd262c543aad9008d6147ea128 (patch)
tree97ea29413c3b845e803af5cf3f64dbc25d8d37e5 /g10/packet.h
parentBetter implementation for the SRV check. We don't need to actually check (diff)
downloadgnupg-b37facc5939cf7bd262c543aad9008d6147ea128.tar.gz
gnupg-b37facc5939cf7bd262c543aad9008d6147ea128.zip
* packet.h, getkey.c (merge_selfsigs_main, sig_to_revoke_info), keyid.c
(revokestr_from_pk), keyedit.c (show_key_with_all_names): Show who revoked a key (either the same key or a designated revoker) and when.
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 0449c7d5f..549e8cc83 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -186,6 +186,15 @@ typedef struct {
char name[1];
} PKT_user_id;
+struct revoke_info
+{
+ /* revoked at this date */
+ u32 date;
+ /* the keyid of the revoking key (selfsig or designated revoker) */
+ u32 keyid[2];
+ /* the algo of the revoking key */
+ byte algo;
+};
/****************
* Note about the pkey/skey elements: We assume that the secret keys
@@ -197,7 +206,7 @@ typedef struct {
u32 timestamp; /* key made */
u32 expiredate; /* expires at this date or 0 if not at all */
u32 max_expiredate; /* must not expire past this date */
- u32 revokedate; /* revoked at this date */
+ struct revoke_info revoked;
byte hdrbytes; /* number of header bytes */
byte version;
byte selfsigversion; /* highest version of all of the self-sigs */