mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-07 13:22:46 +00:00
Check dependencies of protocol versions on hashes
This commit is contained in:
parent
3daaf3d21d
commit
7c3291ea87
@ -658,7 +658,7 @@
|
|||||||
*
|
*
|
||||||
* Enable support for TLS 1.2.
|
* Enable support for TLS 1.2.
|
||||||
*
|
*
|
||||||
* Requires: POLARSSL_SHA256_C or POLARSSL_SHA512_C
|
* Requires: POLARSSL_SHA1_C or POLARSSL_SHA256_C or POLARSSL_SHA512_C
|
||||||
* (Depends on ciphersuites)
|
* (Depends on ciphersuites)
|
||||||
*
|
*
|
||||||
* Comment this macro to disable support for TLS 1.2
|
* Comment this macro to disable support for TLS 1.2
|
||||||
@ -1845,6 +1845,26 @@
|
|||||||
#error "POLARSSL_RSA_C defined, but not all prerequisites"
|
#error "POLARSSL_RSA_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_SSL_PROTO_SSL3) && ( !defined(POLARSSL_MD5_C) || \
|
||||||
|
!defined(POLARSSL_SHA1_C) )
|
||||||
|
#error "POLARSSL_SSL_PROTO_SSL3 defined, but not all prerequisites"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_SSL_PROTO_TLS1) && ( !defined(POLARSSL_MD5_C) || \
|
||||||
|
!defined(POLARSSL_SHA1_C) )
|
||||||
|
#error "POLARSSL_SSL_PROTO_TLS1 defined, but not all prerequisites"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_SSL_PROTO_TLS1_1) && ( !defined(POLARSSL_MD5_C) || \
|
||||||
|
!defined(POLARSSL_SHA1_C) )
|
||||||
|
#error "POLARSSL_SSL_PROTO_TLS1_1 defined, but not all prerequisites"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(POLARSSL_SSL_PROTO_TLS1_2) && ( !defined(POLARSSL_SHA1_C) && \
|
||||||
|
!defined(POLARSSL_SHA256_C) && !defined(POLARSSL_SHA512_C) )
|
||||||
|
#error "POLARSSL_SSL_PROTO_TLS1_2 defined, but not all prerequisites"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_SSL_CLI_C) && !defined(POLARSSL_SSL_TLS_C)
|
#if defined(POLARSSL_SSL_CLI_C) && !defined(POLARSSL_SSL_TLS_C)
|
||||||
#error "POLARSSL_SSL_CLI_C defined, but not all prerequisites"
|
#error "POLARSSL_SSL_CLI_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user