diff options
Diffstat (limited to 'src/certtool.c')
-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; |