diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-13 08:02:04 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-06-14 16:07:49 +0200 |
commit | 44c34e1f6b4e677d7c55aaeb7e96aabd91569d14 (patch) | |
tree | 140106826971502d99555f0c2acaa793ec3edf12 | |
parent | 5d927146d1c96c7230b889d6841d58115dd2f901 (diff) | |
download | gnutls-44c34e1f6b4e677d7c55aaeb7e96aabd91569d14.tar.gz |
gnutls_int.h: groupped extension structures together
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r-- | lib/gnutls_int.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 7bb39780b6..fe7a34bb63 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -955,17 +955,6 @@ typedef struct { /* A handshake process has been completed */ bool initial_negotiation_completed; - struct { - uint16_t type; - gnutls_ext_priv_data_t priv; - bool set; - } extension_int_data[MAX_EXT_TYPES]; - - struct { - uint16_t type; - gnutls_ext_priv_data_t priv; - bool set; - } resumed_extension_int_data[MAX_EXT_TYPES]; /* The type of transport protocol; stream or datagram */ transport_t transport; @@ -1056,6 +1045,19 @@ typedef struct { /* In case of a client holds the extensions we sent to the peer; * otherwise the extensions we received from the client. */ + + struct { + uint16_t type; + gnutls_ext_priv_data_t priv; + bool set; + } extension_int_data[MAX_EXT_TYPES]; + + struct { + uint16_t type; + gnutls_ext_priv_data_t priv; + bool set; + } resumed_extension_int_data[MAX_EXT_TYPES]; + const struct extension_entry_st *used_exts[MAX_EXT_TYPES]; unsigned used_exts_size; |