Lines Matching refs:hostname_len
64 size_t hostname_len; in ssl_write_hostname_ext() local
74 hostname_len = strlen( ssl->hostname ); in ssl_write_hostname_ext()
76 if( end < p || (size_t)( end - p ) < hostname_len + 9 ) in ssl_write_hostname_ext()
103 *p++ = (unsigned char)( ( (hostname_len + 5) >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
104 *p++ = (unsigned char)( ( (hostname_len + 5) ) & 0xFF ); in ssl_write_hostname_ext()
106 *p++ = (unsigned char)( ( (hostname_len + 3) >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
107 *p++ = (unsigned char)( ( (hostname_len + 3) ) & 0xFF ); in ssl_write_hostname_ext()
110 *p++ = (unsigned char)( ( hostname_len >> 8 ) & 0xFF ); in ssl_write_hostname_ext()
111 *p++ = (unsigned char)( ( hostname_len ) & 0xFF ); in ssl_write_hostname_ext()
113 memcpy( p, ssl->hostname, hostname_len ); in ssl_write_hostname_ext()
115 *olen = hostname_len + 9; in ssl_write_hostname_ext()