Added max length checking of hostname

This commit is contained in:
Simon Butcher 2015-09-27 22:50:49 +01:00
parent f592e8eaf6
commit 89f77623b8
2 changed files with 6 additions and 0 deletions

View file

@ -139,6 +139,9 @@
#define MBEDTLS_SSL_TRANSPORT_STREAM 0 /*!< TLS */
#define MBEDTLS_SSL_TRANSPORT_DATAGRAM 1 /*!< DTLS */
#define MBEDTLS_SSL_MAX_HOST_NAME 255 /*!< Maximum host name
defined in RFC 1035 */
/* RFC 6066 section 4, see also mfl_code_to_length in ssl_tls.c
* NONE must be zero so that memset()ing structure to zero works */
#define MBEDTLS_SSL_MAX_FRAG_LEN_NONE 0 /*!< don't use this extension */