mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Make DTLS_ANTI_REPLAY depends on PROTO_DTLS
This commit is contained in:
parent
246c13a05f
commit
8464a46b6b
3 changed files with 18 additions and 11 deletions
|
|
@ -2970,8 +2970,7 @@ static int ssl_prepare_record_content( ssl_context *ssl )
|
|||
}
|
||||
#endif /* POLARSSL_ZLIB_SUPPORT */
|
||||
|
||||
#if defined(POLARSSL_SSL_PROTO_DTLS) && \
|
||||
defined(POLARSSL_SSL_DTLS_ANTI_REPLAY)
|
||||
#if defined(POLARSSL_SSL_DTLS_ANTI_REPLAY)
|
||||
if( ssl->transport == SSL_TRANSPORT_DATAGRAM )
|
||||
{
|
||||
ssl_dtls_replay_update( ssl );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue