aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-12-01 20:59:04 +0000
committerDavid Shaw <[email protected]>2002-12-01 20:59:04 +0000
commitdb9195c10b611e4f79a93ebe7139b4d24c4dd510 (patch)
treeb6ae0374ee13aaedb22a55b9863ca4108faf424f /g10/main.h
parent* NEWS: Add notes about notation names and '@', the --trust-model option, (diff)
downloadgnupg-db9195c10b611e4f79a93ebe7139b4d24c4dd510.tar.gz
gnupg-db9195c10b611e4f79a93ebe7139b4d24c4dd510.zip
* keyedit.c (menu_expire): Don't lose key flags when changing the
expiration date of a subkey. This is not the most optimal solution, but it is minimal change on the stable branch. * main.h, keygen.c (do_copy_key_flags): New function to copy key flags, if any, from one sig to another. (do_add_key_expire): New function to add key expiration to a sig. (keygen_copy_flags_add_expire): New version of keygen_add_key_expire that also copies key flags. (keygen_add_key_flags_and_expire): Use do_add_key_expire. * import.c (fix_hkp_corruption): Comment.
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h
index 91b7182e2..2162d0cc2 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -130,7 +130,12 @@ u32 ask_expiredate(void);
void generate_keypair( const char *fname );
int keygen_set_std_prefs (const char *string,int personal);
PKT_user_id *keygen_get_std_prefs (void);
-int keygen_add_key_expire( PKT_signature *sig, void *opaque );
+struct flags_expire
+{
+ PKT_public_key *pk;
+ PKT_signature *sig;
+};
+int keygen_copy_flags_add_expire( PKT_signature *sig, void *opaque );
int keygen_add_std_prefs( PKT_signature *sig, void *opaque );
int keygen_upd_std_prefs( PKT_signature *sig, void *opaque );
int keygen_add_revkey(PKT_signature *sig, void *opaque);