mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Add dedicated error code for PGP-2 keys.
* g10/parse-packet.c (parse_key): Return GPG_ERR_LEGACY_KEY for PGP2 keys. * g10/import.c (read_block): Simplify by checking GPG_ERR_LEGACY_KEY. * g10/getkey.c (lookup): Silence error message for PGP-2 keys. * common/util.h (GPG_ERR_LEGACY_KEY): Add replacement for older libgpg-error. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
11142e0ad7
commit
6f3d11d883
5 changed files with 7 additions and 11 deletions
|
@ -350,7 +350,7 @@ keyring_lock (KEYRING_HANDLE hd, int yes)
|
|||
|
||||
|
||||
/*
|
||||
* Return the last found keyring. Caller must free it.
|
||||
* Return the last found keyblock. Caller must free it.
|
||||
* The returned keyblock has the kbode flag bit 0 set for the node with
|
||||
* the public key used to locate the keyblock or flag bit 1 set for
|
||||
* the user ID node.
|
||||
|
@ -1409,8 +1409,6 @@ keyring_rebuild_cache (void *token,int noisy)
|
|||
goto leave;
|
||||
}
|
||||
|
||||
log_debug ("keblock with version %d\n",
|
||||
keyblock->pkt->pkt.public_key->version);
|
||||
if (keyblock->pkt->pkt.public_key->version < 4)
|
||||
{
|
||||
/* We do not copy/cache v3 keys or any other unknown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue