[git] GCRYPT - branch, master, updated. libgcrypt-1.8.1-129-gaf0bbdb

by Andreas Metzler cvs at cvs.gnupg.org
Mon Nov 19 09:03:32 CET 2018


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 crypto library".

The branch, master has been updated
       via  af0bbdb9019e0b4a72e87e8b1b4a55506d349834 (commit)
      from  aa686dfc9b563ff79c01d2f8560b88f69c42ecba (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 af0bbdb9019e0b4a72e87e8b1b4a55506d349834
Author: Andreas Metzler <ametzler at bebt.de>
Date:   Sun Nov 18 16:01:21 2018 +0100

    doc: Fix library initialization examples
    
    Signed-off-by: Andreas Metzler <ametzler at bebt.de>

diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi
index 4f4f973..5f20a54 100644
--- a/doc/gcrypt.texi
+++ b/doc/gcrypt.texi
@@ -382,10 +382,12 @@ memory is not a problem, you should initialize Libgcrypt this way:
 
 @example
   /* Version check should be the very first call because it
-     makes sure that important subsystems are initialized. */
-  if (!gcry_check_version (GCRYPT_VERSION))
+     makes sure that important subsystems are initialized.
+     #define NEED_LIBGCRYPT_VERSION to the minimum required version. */
+  if (!gcry_check_version (NEED_LIBGCRYPT_VERSION))
     @{
-      fputs ("libgcrypt version mismatch\n", stderr);
+      fprintf (stderr, "libgcrypt is too old (need %s, have %s)\n",
+         NEED_LIBGCRYPT_VERSION, gcry_check_version (NULL));
       exit (2);
     @}
 
@@ -405,10 +407,12 @@ and freed memory, you need to initialize Libgcrypt this way:
 
 @example
   /* Version check should be the very first call because it
-     makes sure that important subsystems are initialized. */
-  if (!gcry_check_version (GCRYPT_VERSION))
+     makes sure that important subsystems are initialized.
+     #define NEED_LIBGCRYPT_VERSION to the minimum required version. */
+  if (!gcry_check_version (NEED_LIBGCRYPT_VERSION))
     @{
-      fputs ("libgcrypt version mismatch\n", stderr);
+      fprintf (stderr, "libgcrypt is too old (need %s, have %s)\n",
+         NEED_LIBGCRYPT_VERSION, gcry_check_version (NULL));
       exit (2);
     @}
 

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

Summary of changes:
 doc/gcrypt.texi | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list