summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-14 11:23:04 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-02-14 11:23:04 +0100
commitfe48f95d6b5d9a2e8b51851528685801e27225b6 (patch)
tree1ddaeb191890085737d68e2176c748bba4f0106f /lib/gnutls_int.h
parent1148b8e34f5e0cb408f732f26af8132d88d5ee50 (diff)
downloadgnutls-fe48f95d6b5d9a2e8b51851528685801e27225b6.tar.gz
Do not treat any message from the peer as an indication that the last flight was correctly received.
Verify instead that the received handshake message has an expected sequence number.
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 578e355a8b..3069eb9d19 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -605,6 +605,7 @@ typedef struct
/* For DTLS handshake fragmentation and reassembly. */
uint16_t hsk_write_seq;
+ /* the sequence number of the expected packet */
unsigned int hsk_read_seq;
uint16_t mtu;
@@ -638,7 +639,7 @@ typedef struct
time_t async_term;
/* last retransmission triggered by record layer */
- time_t last_retransmit;
+ struct timespec last_retransmit;
unsigned int packets_dropped;
} dtls_st;