commit | fc55172c41268732ff759cada1501a568af87018 | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri Jul 12 08:50:37 2019 +0100 |
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Thu Aug 01 09:51:53 2019 +0200 |
tree | 12029452cb926d67ba3c96d6319b0aeadc1eff4e | |
parent | 69412458526aabab2a230ff54d5a8cace295d78c [diff] [blame] |
Mark DTLS replay check as `const` on the SSL context
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 96e374e..bfa9446 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -4433,7 +4433,7 @@ /* * Return 0 if sequence number is acceptable, -1 otherwise */ -int mbedtls_ssl_dtls_replay_check( mbedtls_ssl_context *ssl ) +int mbedtls_ssl_dtls_replay_check( mbedtls_ssl_context const *ssl ) { uint64_t rec_seqnum = ssl_load_six_bytes( ssl->in_ctr + 2 ); uint64_t bit;