1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
NIIBE Yutaka 74258278ef common, g10: Fix enumeration types.
* common/openpgpdefs.h (CIPHER_ALGO_PRIVATE10, PUBKEY_ALGO_PRIVATE10)
(DIGEST_ALGO_PRIVATE10, COMPRESS_ALGO_PRIVATE10): New.
* g10/misc.c (map_pk_gcry_to_openpgp): Add type conversion.
(map_cipher_openpgp_to_gcry, openpgp_cipher_algo_name)
(openpgp_pk_test_algo2, map_md_openpgp_to_gcry)
(pubkey_get_npkey): Add default handling.

--

Compilers may emit code assuming the maximum value of enum type.
According to OpenPGP specification, there are cases for private uses.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
2017-04-13 12:54:52 +09:00
..
2017-02-21 13:11:46 -05:00
2015-10-28 10:20:17 +01:00
2017-02-28 09:39:10 +01:00
2017-03-27 16:21:02 +02:00
2015-11-17 12:50:22 +01:00
2017-03-30 16:13:43 +02:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00
2016-03-02 14:27:30 +01:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00
2017-02-23 19:59:21 +01:00
2017-04-12 14:47:30 +09:00
2017-04-12 14:47:30 +09:00
2017-04-12 14:47:30 +09:00
2017-01-05 20:43:40 +01:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.