[git] GCRYPT - branch, LIBGCRYPT-1.8-BRANCH, updated. libgcrypt-1.8.4-7-g6faeca7
by Andreas Metzler
cvs at cvs.gnupg.org
Mon Nov 19 09:03:40 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, LIBGCRYPT-1.8-BRANCH has been updated
via 6faeca72b455541ed6da45c5e71c8eb7b10b8c0b (commit)
from bc05e16bb494bfef8b12d76f12afaa50a8e6e9dd (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 6faeca72b455541ed6da45c5e71c8eb7b10b8c0b
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 c32748f..be87d2c 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
More information about the Gnupg-commits
mailing list