gpg: Kludge not to bail out on ECC if build with Libgcrypt 1.6.
authorWerner Koch <wk@gnupg.org>
Fri, 4 Oct 2013 16:01:40 +0000 (18:01 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 4 Oct 2013 16:01:40 +0000 (18:01 +0200)
commit1f842011f611625c8a5fd852d5a2b4bd13e4b563
tree3e58d7b2cc93dab584baa7c78ab75ca782f8c95a
parent7cae002b0c94c80ac8fefb55295819716f312094
gpg: Kludge not to bail out on ECC if build with Libgcrypt 1.6.

* g10/misc.c (print_pubkey_algo_note): Map the algo.
(openpgp_pk_test_algo, openpgp_pk_test_algo2): Ditto.
(pubkey_get_npkey, pubkey_get_nskey, pubkey_get_nsig)
(pubkey_get_nenc): Return 0 for ECC algorithms.
--

Libgcrypt 1.6 features algorithm 18 (generic ECC).  Because of the
missing mapping and no real support for the OpenPGP ECC format, this
led to parsing errors of ECC packets.  We better better explicitly
tell gpg that we ECC is not supported.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/misc.c