Implement support for remembering CCS messages

This commit implements support for remembering out-of-order
CCS messages. Specifically, a flag is set whenever a CCS message
is read which remains until the end of a flight, and when a
CCS message is expected and a CCS message has been seen in the
current flight, a synthesized CCS record is created.
This commit is contained in:
Hanno Becker 2018-08-15 15:11:57 +01:00
parent 40f50848fa
commit 2ed6bcc793
2 changed files with 89 additions and 15 deletions

View file

@ -307,6 +307,9 @@ struct mbedtls_ssl_handshake_params
resending messages */
unsigned char alt_out_ctr[8]; /*!< Alternative record epoch/counter
for resending messages */
uint8_t seen_ccs; /*!< Indicates if a CCS message has
* been seen in the current flight. */
#endif /* MBEDTLS_SSL_PROTO_DTLS */
/*