Home GnuPG
Diffusion GnuPG 6f3d11d8837b

gpg: Add dedicated error code for PGP-2 keys.
6f3d11d8837bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Jan 22 2015, 12:14 PM
Parents
rG11142e0ad7bc: gpg: Replace remaining old error code macros by GPG_ERR_.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG6f3d11d8837b: gpg: Add dedicated error code for PGP-2 keys. (authored by Werner Koch <wk@gnupg.org>).Jan 22 2015, 2:39 PM