summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-04-20 18:59:37 +0200
committerWerner Koch <wk@gnupg.org>2007-04-20 18:59:37 +0200
commitb89d98e3353f6101bc256476c0269f48a92d3f56 (patch)
tree6da6c9dd9e7b78f97ae6e89e54e6603f314cc644 /sm
parent * certcheck.c (do_encode_md): Add arg PKEY. Add support for DSA2 (diff)
downloadgnupg2-b89d98e3353f6101bc256476c0269f48a92d3f56.tar.xz
gnupg2-b89d98e3353f6101bc256476c0269f48a92d3f56.zip
Improved logging for error orginating from libgcrypt.
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog4
-rw-r--r--sm/gpgsm.c12
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);