commit | 13ca8951f96f00750c9fda9928a9affcddcd342c | [log] [tgz] |
---|---|---|
author | Simon Butcher <simon.butcher@arm.com> | Wed Sep 30 00:45:21 2015 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Wed Sep 30 00:45:21 2015 +0100 |
tree | cbd040ba4c5ac44cd4aad44879d587d62bfc5948 | |
parent | 2cf969678555c21cc16c0601dce8de8f902eb55f [diff] [blame] |
Added max length checking of hostname
diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h index e31b776..7aad9f9 100644 --- a/include/polarssl/ssl.h +++ b/include/polarssl/ssl.h
@@ -121,6 +121,8 @@ #define SSL_LEGACY_ALLOW_RENEGOTIATION 1 #define SSL_LEGACY_BREAK_HANDSHAKE 2 +#define SSL_MAX_HOST_NAME_LEN 255 /*!< Maximum host name defined in RFC 1035 */ + /* * Size of the input / output buffer. * Note: the RFC defines the default size of SSL / TLS messages. If you