aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-05-22 20:54:54 +0000
committerWerner Koch <[email protected]>1999-05-22 20:54:54 +0000
commit9131432b4d17af907b9a235985864f1e88f571ff (patch)
tree64a60b3115ee1bfcba806c4b07919c6819e0c702 /g10/keyedit.c
parentSee ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner Koch (diff)
downloadgnupg-9131432b4d17af907b9a235985864f1e88f571ff.tar.gz
gnupg-9131432b4d17af907b9a235985864f1e88f571ff.zip
See ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r--g10/keyedit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index a8e783f36..55bd73a08 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -475,6 +475,8 @@ change_passphrase( KBNODE keyblock )
* There are some keys out (due to a bug in gnupg), where the sequence
* of the packets is wrong. This function fixes that.
* Returns: true if the keyblock has been fixed.
+ *
+ * Note: This function does not work if there is more than one user ID.
*/
static int
fix_keyblock( KBNODE keyblock )
@@ -603,6 +605,8 @@ keyedit_menu( const char *username, STRLIST locusr, STRLIST commands )
goto leave;
if( fix_keyblock( keyblock ) )
modified++;
+ if( collapse_uids( &keyblock ) )
+ modified++;
if( sec_keyblock ) { /* check that they match */
/* FIXME: check that they both match */