summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos <nmav@crystal.(none)>2007-11-30 22:07:11 +0200
committerNikos <nmav@crystal.(none)>2007-11-30 22:07:11 +0200
commit103b53c1384d0c48d03c198685452d057c8a8d99 (patch)
tree08191a808ad8540e39298974141def93e8b2af91 /src
parentf079900d337cee538f66d8c3b50464402ed39837 (diff)
downloadgnutls-103b53c1384d0c48d03c198685452d057c8a8d99.tar.gz
Depend on libgcrypt 1.2.4 again (lose DSA2 functionality).
Diffstat (limited to 'src')
-rw-r--r--src/certtool.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/certtool.c b/src/certtool.c
index d58ff291ad..4cd585541e 100644
--- a/src/certtool.c
+++ b/src/certtool.c
@@ -123,7 +123,12 @@ generate_private_key_int (void)
int ret, key_type;
if (info.dsa)
- key_type = GNUTLS_PK_DSA;
+ {
+ key_type = GNUTLS_PK_DSA;
+ /* FIXME: Remove me once we depend on 1.3.x */
+ if (info.bits > 1024 && gcrypt_check_version("1.3.1")==NULL)
+ info.bits = 1024;
+ }
else
key_type = GNUTLS_PK_RSA;