1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-06-28 00:58:05 +08:00
Manuel Pégourié-Gonnard 6062b49d29 Fix bug in handling of DTLS client hard reconnect
We keep track of the current epoch and record sequence number in out_ctr,
which was overwritten when writing the record containing the
HelloVerifyRequest starting from out_buf. We can avoid that by only using the
rest of the buffer.

Using MBEDTLS_SSL_MAX_CONTENT_LEN as the buffer size is still correct, as it
was a pretty conservative value when starting from out_buf.

Note: this bug was also fixed unknowingly in 2.13 by introducing a new buffer
that holds the current value of the sequence number (including epoch), while
working on datagram packing: 198594709baa82d55bba4e5ee442ffb5ffe886b4

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2020-03-31 13:04:19 +02:00
..
2019-02-11 21:10:48 +00:00
2020-02-03 16:34:53 +01:00
2020-02-04 09:52:27 +01:00
2018-06-21 14:03:14 +03:00
2020-02-19 12:08:10 +00:00
2019-10-25 09:01:34 +01:00
2019-07-08 15:26:09 +02:00
2018-11-05 12:17:15 +00:00
2018-02-22 08:20:42 +00:00
2018-02-22 08:20:42 +00:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2020-02-18 11:27:08 +01:00
2017-10-29 17:53:52 +02:00
2018-10-26 10:08:29 +01:00
2019-06-20 16:28:10 +01:00
2015-09-04 14:21:07 +02:00
2018-12-05 23:23:39 +00:00
2015-09-04 14:21:07 +02:00