Add basic flags for DTLS

This commit is contained in:
Manuel Pégourié-Gonnard 2014-02-06 13:04:16 +01:00 committed by Paul Bakker
parent 82788fb63b
commit 0b1ff29328
4 changed files with 45 additions and 4 deletions

View file

@ -222,6 +222,12 @@
#error "POLARSSL_SSL_PROTO_TLS1_2 defined, but not all prerequisites"
#endif
#if defined(POLARSSL_SSL_PROTO_DTLS) && ( \
!defined(POLARSSL_SSL_PROTO_TLS1_1) && \
!defined(POLARSSL_SSL_PROTO_TLS1_2) )
#error "POLARSSL_SSL_PROTO_DTLS defined, but not all prerequisites"
#endif
#if defined(POLARSSL_SSL_CLI_C) && !defined(POLARSSL_SSL_TLS_C)
#error "POLARSSL_SSL_CLI_C defined, but not all prerequisites"
#endif