_gnutls_dh_generate_key() will account the q_bits

parent 94f4f179
...@@ -929,7 +929,7 @@ int _gnutls_dh_generate_key(gnutls_dh_params_t dh_params, ...@@ -929,7 +929,7 @@ int _gnutls_dh_generate_key(gnutls_dh_params_t dh_params,
priv_key->data = NULL; priv_key->data = NULL;
pub_key->data = NULL; pub_key->data = NULL;
ret = _gnutls_pk_generate_keys(GNUTLS_PK_DH, 0, &params); ret = _gnutls_pk_generate_keys(GNUTLS_PK_DH, dh_params->q_bits, &params);
if (ret < 0) { if (ret < 0) {
return gnutls_assert_val(ret); return gnutls_assert_val(ret);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment