diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-28 10:31:50 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-28 13:42:40 +0200 |
commit | 8d095429ea6f01a6db84df8d896a0f7bb5b0bba1 (patch) | |
tree | ae6de0e0f165250186aad2eb9e08dcb87b740a9b /lib/gnutls_int.h | |
parent | cfe068979d11ef99362cb3b2354556c275911a1b (diff) | |
download | gnutls-8d095429ea6f01a6db84df8d896a0f7bb5b0bba1.tar.gz |
instead of assigning a variable per flag use the init flags directly
That is store the flags provided in gnutls_init() in the session structure
and use these flags directly when required.
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r-- | lib/gnutls_int.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 743e1ba678..e968745416 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -998,10 +998,8 @@ typedef struct { recv_state_t recv_state; /* state of the receive function */ bool sc_random_set; - bool no_replay_protection; /* DTLS replay protection */ - bool allow_cert_change; /* whether the peer is allowed to change certificate */ - bool force_client_cert; - bool try_ext_master_secret; /* whether to try negotiating the ext master secret */ + + unsigned flags; /* the flags in gnutls_init() */ /* a verify callback to override the verify callback from the credentials * structure */ @@ -1012,14 +1010,10 @@ typedef struct { unsigned vc_status; unsigned int additional_verify_flags; /* may be set by priorities or the vc functions */ - /* whether this session uses non-blocking sockets */ - bool blocking; - /* the SHA256 hash of the peer's certificate */ uint8_t cert_hash[32]; bool cert_hash_set; - bool enable_false_start; /* whether TLS false start has been requested */ bool false_start_used; /* non-zero if false start was used for appdata */ /* If you add anything here, check _gnutls_handshake_internal_state_clear(). |