diff options
author | Nikos <nmav@crystal.(none)> | 2007-11-30 22:07:11 +0200 |
---|---|---|
committer | Nikos <nmav@crystal.(none)> | 2007-11-30 22:07:11 +0200 |
commit | 103b53c1384d0c48d03c198685452d057c8a8d99 (patch) | |
tree | 08191a808ad8540e39298974141def93e8b2af91 /src | |
parent | f079900d337cee538f66d8c3b50464402ed39837 (diff) | |
download | gnutls-103b53c1384d0c48d03c198685452d057c8a8d99.tar.gz |
Depend on libgcrypt 1.2.4 again (lose DSA2 functionality).
Diffstat (limited to 'src')
-rw-r--r-- | src/certtool.c | 7 |
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; |