diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-14 10:35:58 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-02 08:26:32 +0200 |
commit | 05a70e1283a1755456f5bb6941b9b0c908a725f1 (patch) | |
tree | 1b24efd594517756f3fc593aa3276ef9683b7845 /lib/state.h | |
parent | f9b6cfd536fc97a9fdf94e61649bffb682e78de1 (diff) | |
download | gnutls-05a70e1283a1755456f5bb6941b9b0c908a725f1.tar.gz |
security_parameters: ease access to group information by keeping pointer to it
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/state.h')
-rw-r--r-- | lib/state.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/state.h b/lib/state.h index 5fec7f64bb..253af0e17c 100644 --- a/lib/state.h +++ b/lib/state.h @@ -25,10 +25,10 @@ #include "gnutls_int.h" -inline static gnutls_ecc_curve_t -_gnutls_session_group_get(gnutls_session_t session) +inline static const gnutls_group_entry_st * +get_group(gnutls_session_t session) { - return session->security_parameters.group; + return session->security_parameters.grp; } int _gnutls_session_is_ecc(gnutls_session_t session); @@ -39,7 +39,7 @@ _gnutls_session_group_set(gnutls_session_t session, { _gnutls_handshake_log("HSK[%p]: Selected group %s (%d)\n", session, e->name, e->id); - session->security_parameters.group = e->id; + session->security_parameters.grp = e; } |