mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-04 05:35:33 +01:00
Add separate SSL_COOKIE_C define
This commit is contained in:
parent
7d38d215b1
commit
a64acd4f84
4 changed files with 22 additions and 6 deletions
|
|
@ -263,6 +263,10 @@
|
|||
#error "Illegal protocol selection"
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SSL_COOKIE_C) && !defined(POLARSSL_SSL_DTLS_HELLO_VERIFY)
|
||||
#error "POLARSSL_SSL_COOKIE_C defined, but not all prerequisites"
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_SSL_DTLS_HELLO_VERIFY) && \
|
||||
( !defined(POLARSSL_SSL_SRV_C) || !defined(POLARSSL_SSL_PROTO_DTLS) )
|
||||
#error "POLARSSL_SSL_DTLS_HELLO_VERIFY defined, but not all prerequisites"
|
||||
|
|
|
|||
|
|
@ -1930,6 +1930,18 @@
|
|||
*/
|
||||
#define POLARSSL_SSL_CACHE_C
|
||||
|
||||
/**
|
||||
* \def POLARSSL_SSL_COOKIE_C
|
||||
*
|
||||
* Enable basic implementation of DTLS cookies for hello verification.
|
||||
*
|
||||
* Module: library/ssl_cookie.c
|
||||
* Caller:
|
||||
*
|
||||
* Requires: POLARSSL_SSL_DTLS_HELLO_VERIFY
|
||||
*/
|
||||
#define POLARSSL_SSL_COOKIE_C
|
||||
|
||||
/**
|
||||
* \def POLARSSL_SSL_CLI_C
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue