[git] GnuPG - branch, master, updated. gnupg-2.2.7-280-g1e70096

[email protected] (by Werner Koch) Fri, 16 Nov 2018 09:19:25 +0100
Newsgroups gmane.comp.encryption.gpg.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  1e700961ddf4c54ec5a03a697fe00d7eb606fdff (commit)
      from  c8f79cec743c60b03db4c6d1e901a42e41faa1bc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1e700961ddf4c54ec5a03a697fe00d7eb606fdff
Author: Werner Koch <[email protected]>
Date:   Fri Nov 16 09:19:10 2018 +0100

    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 <[email protected]>

diff --git a/g10/main.h b/g10/main.h
index 768f7cf..86f8589 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -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

-----------------------------------------------------------------------

Summary of changes:
 g10/main.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org