lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to version 1.4.4.
authorSimon Josefsson <simon@josefsson.org>
Wed, 14 Apr 2010 13:23:28 +0000 (15:23 +0200)
committerSimon Josefsson <simon@josefsson.org>
Wed, 14 Apr 2010 13:23:28 +0000 (15:23 +0200)
ChangeLog
lib/gc-libgcrypt.c

index f1ccfdc..1151f35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-04-14  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
+       version 1.4.4 by default instead of requiring the libgcrypt
+       version used during build.  This makes it possible to use the
+       application with older but still binary compatible libgcrypt
+       versions.
+
 2010-04-13  Eric Blake  <eblake@redhat.com>
 
        getopt-gnu: match recent glibc fixes and posix ruling
index 1ecc962..46a6e53 100644 (file)
 
 #include <assert.h>
 
+#ifndef MIN_GCRYPT_VERSION
+# define MIN_GCRYPT_VERSION "1.4.4"
+#endif
+
 /* Initialization. */
 
 Gc_rc
@@ -50,7 +54,7 @@ gc_init (void)
       if (gcry_control (GCRYCTL_DISABLE_SECMEM, NULL, 0))
         return GC_INIT_ERROR;
 
-      if (gcry_check_version (GCRYPT_VERSION) == NULL)
+      if (gcry_check_version (MIN_GCRYPT_VERSION) == NULL)
         return GC_INIT_ERROR;
 
       err = gcry_control (GCRYCTL_INITIALIZATION_FINISHED, NULL, 0);