From: Nikos Mavrogiannopoulos Date: Wed, 29 Oct 2014 15:17:45 +0000 (+0100) Subject: _gnutls_dh_generate_key() will account the q_bits X-Git-Tag: gnutls_3_4_0~723 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9196b71daef75de0cf1559992bcab25113992757;p=thirdparty%2Fgnutls.git _gnutls_dh_generate_key() will account the q_bits --- diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index 0653fcc248..66815f043c 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -929,7 +929,7 @@ int _gnutls_dh_generate_key(gnutls_dh_params_t dh_params, priv_key->data = NULL; pub_key->data = NULL; - ret = _gnutls_pk_generate_keys(GNUTLS_PK_DH, 0, ¶ms); + ret = _gnutls_pk_generate_keys(GNUTLS_PK_DH, dh_params->q_bits, ¶ms); if (ret < 0) { return gnutls_assert_val(ret); }