gpg: Start using OCB mode by default with Libgcrypt 1.9.

* g10/main.h (GCRYPT_VERSION_NUMBER): Fix type in condition.
--

GnuPG-bug-id: 4259
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2018-11-16 09:19:10 +01:00
parent c8f79cec74
commit 1e700961dd
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@
# define DEFAULT_CIPHER_ALGO CIPHER_ALGO_3DES
#endif
#if GCRYPT_VERSION_NUMBER < 0x019000
/* We will start using OCB mode by default only if the yet to be
* released libgcrypt 1.9 is used. */
#if GCRYPT_VERSION_NUMBER < 0x010900
# define DEFAULT_AEAD_ALGO AEAD_ALGO_OCB
#else
# define DEFAULT_AEAD_ALGO AEAD_ALGO_EAX