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
|
|
@ -272,6 +272,11 @@
|
|||
#error "POLARSSL_SSL_DTLS_HELLO_VERIFY defined, but not all prerequisites"
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SSL_DTLS_ANTI_REPLAY) && \
|
||||
( !defined(POLARSSL_SSL_TLS_C) || !defined(POLARSSL_SSL_PROTO_DTLS) )
|
||||
#error "POLARSSL_SSL_DTLS_ANTI_REPLAY defined, but not all prerequisites"
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SSL_SESSION_TICKETS) && defined(POLARSSL_SSL_TLS_C) && \
|
||||
( !defined(POLARSSL_AES_C) || !defined(POLARSSL_SHA256_C) || \
|
||||
!defined(POLARSSL_CIPHER_MODE_CBC) )
|
||||
|
|
|
|||
|
|
@ -913,15 +913,6 @@
|
|||
*/
|
||||
#define POLARSSL_SSL_PROTO_DTLS
|
||||
|
||||
/**
|
||||
* \def POLARSSL_SSL_DTLS_ANTI_REPLAY
|
||||
*
|
||||
* Enable support for the anti-replay mechanism in DTLS.
|
||||
*
|
||||
* Comment this to disable anti-replay in DTLS.
|
||||
*/
|
||||
#define POLARSSL_SSL_DTLS_ANTI_REPLAY
|
||||
|
||||
/**
|
||||
* \def POLARSSL_SSL_ALPN
|
||||
*
|
||||
|
|
@ -932,6 +923,18 @@
|
|||
*/
|
||||
#define POLARSSL_SSL_ALPN
|
||||
|
||||
/**
|
||||
* \def POLARSSL_SSL_DTLS_ANTI_REPLAY
|
||||
*
|
||||
* Enable support for the anti-replay mechanism in DTLS.
|
||||
*
|
||||
* Requires: POLARSSL_SSL_TLS_C
|
||||
* POLARSSL_POLARSSL_PROTO_DTLS
|
||||
*
|
||||
* Comment this to disable anti-replay in DTLS.
|
||||
*/
|
||||
#define POLARSSL_SSL_DTLS_ANTI_REPLAY
|
||||
|
||||
/**
|
||||
* \def POLARSSL_SSL_DTLS_HELLO_VERIFY
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue