mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-04-25 11:56:37 +00:00
Check static bounds of CID lengths in check_config.h
This commit is contained in:
parent
0652bc50c7
commit
189a01309f
|
@ -646,6 +646,18 @@
|
||||||
#error "MBEDTLS_SSL_CID defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_CID defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_CID) && \
|
||||||
|
defined(MBEDTLS_SSL_CID_IN_LEN_MAX) && \
|
||||||
|
MBEDTLS_SSL_CID_IN_LEN_MAX > 255
|
||||||
|
#error "MBEDTLS_SSL_CID_IN_LEN_MAX too large (max 255)"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_CID) && \
|
||||||
|
defined(MBEDTLS_SSL_CID_OUT_LEN_MAX) && \
|
||||||
|
MBEDTLS_SSL_CID_OUT_LEN_MAX > 255
|
||||||
|
#error "MBEDTLS_SSL_CID_OUT_LEN_MAX too large (max 255)"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SSL_DTLS_BADMAC_LIMIT) && \
|
#if defined(MBEDTLS_SSL_DTLS_BADMAC_LIMIT) && \
|
||||||
( !defined(MBEDTLS_SSL_TLS_C) || !defined(MBEDTLS_SSL_PROTO_DTLS) )
|
( !defined(MBEDTLS_SSL_TLS_C) || !defined(MBEDTLS_SSL_PROTO_DTLS) )
|
||||||
#error "MBEDTLS_SSL_DTLS_BADMAC_LIMIT defined, but not all prerequisites"
|
#error "MBEDTLS_SSL_DTLS_BADMAC_LIMIT defined, but not all prerequisites"
|
||||||
|
|
Loading…
Reference in a new issue