# HG changeset patch # User Simon Josefsson # Date 1271251408 -7200 # Node ID 52f20913a6c2c883271f16197ba0295a61359209 # Parent de461a3f23f579e94cbf42c01d14259b9538bd26 lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to version 1.4.4. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-04-14 Simon Josefsson + + * 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 getopt-gnu: match recent glibc fixes and posix ruling diff --git a/lib/gc-libgcrypt.c b/lib/gc-libgcrypt.c --- a/lib/gc-libgcrypt.c +++ b/lib/gc-libgcrypt.c @@ -37,6 +37,10 @@ #include +#ifndef MIN_GCRYPT_VERSION +# define MIN_GCRYPT_VERSION "1.4.4" +#endif + /* Initialization. */ Gc_rc @@ -50,7 +54,7 @@ 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);