summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-11-07 15:36:01 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-02-19 15:29:36 +0100
commitab839c29bcc774642b1dc6d8ed95ccbf12f8ac01 (patch)
tree82291a065a07eadba6a2f463c3d77fc26ff7cc46 /lib/gnutls_int.h
parent96f2de961f7d9c0e6657a0bbc96d19d536a4b9d8 (diff)
downloadgnutls-ab839c29bcc774642b1dc6d8ed95ccbf12f8ac01.tar.gz
handshake: use hsk_flags in TLS1.2 and TLS1.3
The flags provide a more transparent view of the received and expected messages. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 4a02ddbae1..68ca48dcc3 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -1145,14 +1145,9 @@ typedef struct {
#define HSK_CRT_REQ_SENT (1<<5)
#define HSK_CRT_REQ_GOT_SIG_ALGO (1<<6)
#define HSK_KEY_UPDATE_ASKED (1<<7) /* flag is not used during handshake */
- unsigned hsk_flags; /* TLS1.3 only */
+ unsigned hsk_flags;
time_t last_key_update;
- unsigned crt_requested; /* 1 if client auth was requested (i.e., client cert).
- * In case of a server this holds 1 if we should wait
- * for a client certificate verify
- */
-
gnutls_buffer_st hb_local_data;
gnutls_buffer_st hb_remote_data;
struct timespec hb_ping_start; /* timestamp: when first HeartBeat ping was sent */
@@ -1168,6 +1163,7 @@ typedef struct {
recv_state_t recv_state; /* state of the receive function */
+ /* if set, server and client random were set by the application */
bool sc_random_set;
unsigned flags; /* the flags in gnutls_init() */