mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-24 12:25:40 +00:00
Add check for undocumented positive option
This commit is contained in:
parent
41efa2109e
commit
c84511fb1f
|
@ -565,6 +565,12 @@
|
||||||
#error "MBEDTLS_SSL_TLS_C defined, but no protocol version is active"
|
#error "MBEDTLS_SSL_TLS_C defined, but no protocol version is active"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* PROTO_TLS is not a documented option so far, but still check for conflicts
|
||||||
|
* involving it, in preparation for making it the documented option later */
|
||||||
|
#if defined(MBEDTLS_SSL_PROTO_TLS) && defined(MBEDTLS_SSL_PROTO_NO_TLS)
|
||||||
|
#error "MBEDTLS_SSL_PROTO_TLS and MBEDTLS_SSL_PROTO_NO_TLS both defined"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_TLS_C) && \
|
#if defined(MBEDTLS_SSL_TLS_C) && \
|
||||||
( defined(MBEDTLS_SSL_PROTO_NO_TLS) && !defined(MBEDTLS_SSL_PROTO_DTLS) )
|
( defined(MBEDTLS_SSL_PROTO_NO_TLS) && !defined(MBEDTLS_SSL_PROTO_DTLS) )
|
||||||
#error "MBEDTLS_SSL_TLS_C defined, but neither TLS or DTLS is active"
|
#error "MBEDTLS_SSL_TLS_C defined, but neither TLS or DTLS is active"
|
||||||
|
|
Loading…
Reference in a new issue