summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-04-15 18:57:15 +0200
committerWerner Koch <wk@gnupg.org>2002-04-15 18:57:15 +0200
commit8992de3bf677bbfad7f60fba343a73585b6071d7 (patch)
tree625f8dc29d98c59b4f793c2d407ddcbc297991f3
parent* certpath.c (find_up): New to use the authorithKeyIdentifier. (diff)
downloadgnupg2-8992de3bf677bbfad7f60fba343a73585b6071d7.tar.xz
gnupg2-8992de3bf677bbfad7f60fba343a73585b6071d7.zip
* gpgsm.c (main): Check ksba version.
-rw-r--r--sm/ChangeLog2
-rw-r--r--sm/gpgsm.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index dbb5608a0..7574e3350 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,5 +1,7 @@
2002-04-15 Werner Koch <wk@gnupg.org>
+ * gpgsm.c (main): Check ksba version.
+
* certpath.c (find_up): New to use the authorithKeyIdentifier.
Use it in all other functions to locate the signing cert..
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index d86e5e2b8..3a1b7a7c2 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -588,10 +588,15 @@ main ( int argc, char **argv)
log_set_prefix ("gpgsm", 1);
/* check that the libraries are suitable. Do it here because the
option parse may need services of the library */
- if (!gcry_check_version ( "1.1.4" ) )
+ if (!gcry_check_version (NEED_LIBGCRYPT_VERSION) )
{
log_fatal( _("libgcrypt is too old (need %s, have %s)\n"),
- VERSION, gcry_check_version (NULL) );
+ NEED_LIBGCRYPT_VERSION, gcry_check_version (NULL) );
+ }
+ if (!ksba_check_version (NEED_LIBKSBA_VERSION) )
+ {
+ log_fatal( _("libksba is too old (need %s, have %s)\n"),
+ NEED_LIBKSBA_VERSION, ksba_check_version (NULL) );
}
gcry_control (GCRYCTL_USE_SECURE_RNDPOOL);