summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-04-30 12:05:11 +0200
committerSimon Josefsson <simon@josefsson.org>2009-04-30 12:05:11 +0200
commit190dec7388fb7ff999f6bc50610545f6d76f9400 (patch)
tree98c90f59b21a8fad70895827be357d45aa9e8d48
parent51146e6ee2d7439557f93eb91c9b5e2926b21fa6 (diff)
downloadgnutls-190dec7388fb7ff999f6bc50610545f6d76f9400.tar.gz
Fix DSA key generation.
-rw-r--r--lib/gnutls_pk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c
index c6a27a503b..fc1b7383ba 100644
--- a/lib/gnutls_pk.c
+++ b/lib/gnutls_pk.c
@@ -528,7 +528,7 @@ _generate_params (int algo, bigint_t * resarr, unsigned int *resarr_len,
int ret;
unsigned int i;
- ret = _gnutls_pk_ops.generate (GNUTLS_PK_RSA, bits, &params);
+ ret = _gnutls_pk_ops.generate (algo, bits, &params);
if (ret < 0)
{