1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Mark DTLS replay check as const on the SSL context

This commit is contained in:
Hanno Becker
2019-07-12 08:50:37 +01:00
parent 7ae20e0f4c
commit 0183d699bf
2 changed files with 2 additions and 2 deletions

View File

@ -4608,7 +4608,7 @@ static inline uint64_t ssl_load_six_bytes( unsigned char *buf )
/*
* 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;