diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-01-26 15:27:42 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-01-26 15:27:42 +0100 |
commit | 73db12ce047537fb2c26b50c4d98d985225e3b4a (patch) | |
tree | d7ffbc6c22b6b56c525fc638f1bcdace2b83fb55 /lib/gnutls_state.h | |
parent | b8f40540b929aa6f30a16381cf08cfa2a8e7a878 (diff) | |
download | gnutls-73db12ce047537fb2c26b50c4d98d985225e3b4a.tar.gz |
Instead of setting directly the number of DH bits, set a security parameter per session.
Diffstat (limited to 'lib/gnutls_state.h')
-rw-r--r-- | lib/gnutls_state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_state.h b/lib/gnutls_state.h index 47de41bdde..88d876ac5b 100644 --- a/lib/gnutls_state.h +++ b/lib/gnutls_state.h @@ -63,7 +63,7 @@ int _gnutls_dh_set_group (gnutls_session_t session, bigint_t gen, static inline int _gnutls_dh_get_min_prime_bits (gnutls_session_t session) { - return session->internals.priorities.dh_prime_bits; + return gnutls_sec_param_to_pk_bits(GNUTLS_PK_DH, session->internals.priorities.level); } void _gnutls_handshake_internal_state_clear (gnutls_session_t); |