summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/gcrypt.texi16
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi
index 4f4f9735..5f20a54d 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);
@}