mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 04:14:19 +01:00
Mark DTLS replay check as const
on the SSL context
This commit is contained in:
parent
7ae20e0f4c
commit
0183d699bf
@ -969,7 +969,7 @@ int mbedtls_ssl_flight_transmit( mbedtls_ssl_context *ssl );
|
|||||||
|
|
||||||
/* Visible for testing purposes only */
|
/* Visible for testing purposes only */
|
||||||
#if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
|
#if defined(MBEDTLS_SSL_DTLS_ANTI_REPLAY)
|
||||||
int mbedtls_ssl_dtls_replay_check( mbedtls_ssl_context *ssl );
|
int mbedtls_ssl_dtls_replay_check( mbedtls_ssl_context const *ssl );
|
||||||
void mbedtls_ssl_dtls_replay_update( mbedtls_ssl_context *ssl );
|
void mbedtls_ssl_dtls_replay_update( mbedtls_ssl_context *ssl );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -4608,7 +4608,7 @@ static inline uint64_t ssl_load_six_bytes( unsigned char *buf )
|
|||||||
/*
|
/*
|
||||||
* Return 0 if sequence number is acceptable, -1 otherwise
|
* 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 rec_seqnum = ssl_load_six_bytes( ssl->in_ctr + 2 );
|
||||||
uint64_t bit;
|
uint64_t bit;
|
||||||
|
Loading…
Reference in New Issue
Block a user