diff options
author | Werner Koch <wk@gnupg.org> | 2007-04-20 18:59:37 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-04-20 18:59:37 +0200 |
commit | b89d98e3353f6101bc256476c0269f48a92d3f56 (patch) | |
tree | 6da6c9dd9e7b78f97ae6e89e54e6603f314cc644 /sm | |
parent | * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2 (diff) | |
download | gnupg2-b89d98e3353f6101bc256476c0269f48a92d3f56.tar.xz gnupg2-b89d98e3353f6101bc256476c0269f48a92d3f56.zip |
Improved logging for error orginating from libgcrypt.
Diffstat (limited to 'sm')
-rw-r--r-- | sm/ChangeLog | 4 | ||||
-rw-r--r-- | sm/gpgsm.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog index 20a1556d2..019cd7650 100644 --- a/sm/ChangeLog +++ b/sm/ChangeLog @@ -1,3 +1,7 @@ +2007-04-20 Werner Koch <wk@g10code.com> + + * gpgsm.c (main): Parameterize failed versions check messages. + 2007-04-19 Werner Koch <wk@g10code.com> * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2 diff --git a/sm/gpgsm.c b/sm/gpgsm.c index 263632c6f..924286f8f 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -768,15 +768,11 @@ main ( int argc, char **argv) /* Check that the libraries are suitable. Do it here because the option parse may need services of the library */ if (!gcry_check_version (NEED_LIBGCRYPT_VERSION) ) - { - log_fatal( _("libgcrypt is too old (need %s, have %s)\n"), - NEED_LIBGCRYPT_VERSION, gcry_check_version (NULL) ); - } + log_fatal (_("%s is too old (need %s, have %s)\n"), "libgcrypt", + NEED_LIBGCRYPT_VERSION, gcry_check_version (NULL) ); if (!ksba_check_version (NEED_KSBA_VERSION) ) - { - log_fatal( _("libksba is too old (need %s, have %s)\n"), - NEED_KSBA_VERSION, ksba_check_version (NULL) ); - } + log_fatal (_("%s is too old (need %s, have %s)\n"), "libksba", + NEED_KSBA_VERSION, ksba_check_version (NULL) ); gcry_control (GCRYCTL_USE_SECURE_RNDPOOL); |