mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* hkp.c (dehtmlize): Fix bug #121 (memory corruption on some platforms).
Special thanks to Michael C. Toren for his help in lining up a sparc to test this fix on. * keyserver.c (keyserver_work): Call out error for keyserver helper with a different version than us. * main.h, g10.c (main), import.c (parse_import_options, fix_pks_corruption): It's really PKS corruption, not HKP corruption. Keep the old repair-hkp-subkey-bug command as an alias. * g10.c (main): Rename --no-version to --no-emit-version for consistency. Keep --no-version as an alias.
This commit is contained in:
parent
001ff9a09e
commit
78da3fdfaa
6 changed files with 38 additions and 10 deletions
11
g10/import.c
11
g10/import.c
|
@ -96,7 +96,8 @@ parse_import_options(char *str,unsigned int *options)
|
|||
} import_opts[]=
|
||||
{
|
||||
{"allow-local-sigs",IMPORT_ALLOW_LOCAL_SIGS},
|
||||
{"repair-hkp-subkey-bug",IMPORT_REPAIR_HKP_SUBKEY_BUG},
|
||||
{"repair-hkp-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG},
|
||||
{"repair-pks-subkey-bug",IMPORT_REPAIR_PKS_SUBKEY_BUG},
|
||||
{NULL,0}
|
||||
};
|
||||
|
||||
|
@ -452,7 +453,7 @@ remove_bad_stuff (KBNODE keyblock)
|
|||
}
|
||||
}
|
||||
|
||||
/* Walk through the subkeys on a pk to find if we have the HKP
|
||||
/* Walk through the subkeys on a pk to find if we have the PKS
|
||||
disease: multiple subkeys with their binding sigs stripped, and the
|
||||
sig for the first subkey placed after the last subkey. That is,
|
||||
instead of "pk uid sig sub1 bind1 sub2 bind2 sub3 bind3" we have
|
||||
|
@ -462,7 +463,7 @@ remove_bad_stuff (KBNODE keyblock)
|
|||
sub2 sub3". Returns TRUE if the keyblock was modified. */
|
||||
|
||||
static int
|
||||
fix_hkp_corruption(KBNODE keyblock)
|
||||
fix_pks_corruption(KBNODE keyblock)
|
||||
{
|
||||
int changed=0,keycount=0;
|
||||
KBNODE node,last=NULL,sknode=NULL;
|
||||
|
@ -627,7 +628,9 @@ import_one( const char *fname, KBNODE keyblock, int fast,
|
|||
|
||||
clear_kbnode_flags( keyblock );
|
||||
|
||||
if((options&IMPORT_REPAIR_HKP_SUBKEY_BUG) && fix_hkp_corruption(keyblock))
|
||||
/* It's really PKS corruption, not HKP corruption, but I won't
|
||||
change the string in stable. */
|
||||
if((options&IMPORT_REPAIR_PKS_SUBKEY_BUG) && fix_pks_corruption(keyblock))
|
||||
log_info(_("key %08lX: HKP subkey corruption repaired\n"),
|
||||
(ulong)keyid[1]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue