mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Don't bail out for unknown subkey packet versions.
* g10/import.c (read_block): Don't show a warning for unbnown version
also for non-primary-key packets.
* g10/parse-packet.c (parse_key): Use log_info for unsupported v5
packets.
--
This fixes the problem that 2.2 can't import keys with a v5 subkey.
This fix allows a gnupg 2.6. version to export a key with an
additional PQC subkey and 2.2 can still import the other subkeys.
The second patch avoids that gpg returns with an error code.
Updates-commit: de70a2f377
This commit is contained in:
parent
95468f531c
commit
b357ff2aa6
2 changed files with 6 additions and 2 deletions
|
@ -959,7 +959,8 @@ read_block( IOBUF a, unsigned int options,
|
|||
else if (rc ) /* (ignore errors) */
|
||||
{
|
||||
skip_sigs = 0;
|
||||
if (gpg_err_code (rc) == GPG_ERR_UNKNOWN_PACKET)
|
||||
if (gpg_err_code (rc) == GPG_ERR_UNKNOWN_PACKET
|
||||
|| gpg_err_code (rc) == GPG_ERR_UNKNOWN_VERSION)
|
||||
; /* Do not show a diagnostic. */
|
||||
else if (gpg_err_code (rc) == GPG_ERR_INV_PACKET
|
||||
&& (pkt->pkttype == PKT_USER_ID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue