mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
* import.c (import_one): Do the revocation check even in the case when a
key, a revocation key set in a direct key signature, and a revocation from that revocation key, all arrive piecemeal. Needless to say, this is pretty obscure.
This commit is contained in:
parent
97b52b35a0
commit
f7d47d03d6
@ -1,3 +1,10 @@
|
|||||||
|
2004-02-11 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* import.c (import_one): Do the revocation check even in the case
|
||||||
|
when a key, a revocation key set in a direct key signature, and a
|
||||||
|
revocation from that revocation key, all arrive piecemeal.
|
||||||
|
Needless to say, this is pretty obscure.
|
||||||
|
|
||||||
2004-02-10 David Shaw <dshaw@jabberwocky.com>
|
2004-02-10 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* g10.c (rm_group): Properly ungroup from a list of groups.
|
* g10.c (rm_group): Properly ungroup from a list of groups.
|
||||||
|
15
g10/import.c
15
g10/import.c
@ -1,6 +1,6 @@
|
|||||||
/* import.c
|
/* import.c
|
||||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
|
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
|
||||||
* Free Software Foundation, Inc.
|
* 2004 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
*
|
*
|
||||||
@ -496,7 +496,7 @@ print_import_ok (PKT_public_key *pk, PKT_secret_key *sk, unsigned int reason)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void
|
||||||
print_import_check (PKT_public_key * pk, PKT_user_id * id)
|
print_import_check (PKT_public_key * pk, PKT_user_id * id)
|
||||||
{
|
{
|
||||||
char * buf;
|
char * buf;
|
||||||
@ -777,11 +777,14 @@ import_one( const char *fname, KBNODE keyblock, int fast,
|
|||||||
}
|
}
|
||||||
|
|
||||||
leave:
|
leave:
|
||||||
|
if(mod_key)
|
||||||
|
revocation_present(keyblock_orig);
|
||||||
|
else if(new_key)
|
||||||
|
revocation_present(keyblock);
|
||||||
|
|
||||||
release_kbnode( keyblock_orig );
|
release_kbnode( keyblock_orig );
|
||||||
free_public_key( pk_orig );
|
free_public_key( pk_orig );
|
||||||
|
|
||||||
revocation_present(keyblock);
|
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1373,8 +1376,8 @@ collapse_uids( KBNODE *keyblock )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check for a 0x20 revocation from a revocation key that is not
|
/* Check for a 0x20 revocation from a revocation key that is not
|
||||||
present. This gets called without the benefit of merge_xxxx so you
|
present. This may be called without the benefit of merge_xxxx so
|
||||||
can't rely on pk->revkey and friends. */
|
you can't rely on pk->revkey and friends. */
|
||||||
static void
|
static void
|
||||||
revocation_present(KBNODE keyblock)
|
revocation_present(KBNODE keyblock)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user