From 49829c29e541546084950b8a153067db371d101a Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Mon, 8 Aug 2016 18:40:03 -0400 Subject: Cleanup initialization of libgcrypt. * common/init.c (init_common_subsystems): Initialize libgcrypt. * dirmngr/Makefile.am (dirmngr_ldap): Link with libgcrypt. -- Most other modules already call gcry_check_version() after init_common_subsystems() so may as well move initialization of libgcrypt to here. Also fixes a warning in the system log from gpgconf --homedir. Signed-off-by: Ben Kibbey --- tools/symcryptrun.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tools/symcryptrun.c') diff --git a/tools/symcryptrun.c b/tools/symcryptrun.c index 3732b39b8..5c1f0da1b 100644 --- a/tools/symcryptrun.c +++ b/tools/symcryptrun.c @@ -998,11 +998,6 @@ main (int argc, char **argv) log_set_file (logfile); gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN); - if (!gcry_check_version (NEED_LIBGCRYPT_VERSION) ) - { - log_fatal (_("%s is too old (need %s, have %s)\n"), "libgcrypt", - NEED_LIBGCRYPT_VERSION, gcry_check_version (NULL) ); - } setup_libgcrypt_logging (); gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0); -- cgit v1.2.3