Lines Matching refs:hostname_len
2776 size_t hostname_len = 0;
2781 hostname_len = strlen(hostname);
2783 if (hostname_len > MBEDTLS_SSL_MAX_HOST_NAME_LEN) {
2800 ssl->hostname = mbedtls_calloc(1, hostname_len + 1);
2805 memcpy(ssl->hostname, hostname, hostname_len);
2807 ssl->hostname[hostname_len] = '\0';
3766 size_t hostname_len = (session->hostname == NULL) ?
3809 needed += 2 /* hostname_len */
3810 + hostname_len; /* hostname */
3871 MBEDTLS_PUT_UINT16_BE(hostname_len, p, 0);
3873 if (hostname_len > 0) {
3875 memcpy(p, session->hostname, hostname_len);
3876 p += hostname_len;
3980 size_t hostname_len;
3985 hostname_len = MBEDTLS_GET_UINT16_BE(p, 0);
3988 if (end - p < (long int) hostname_len) {
3991 if (hostname_len > 0) {
3992 session->hostname = mbedtls_calloc(1, hostname_len);
3996 memcpy(session->hostname, p, hostname_len);
3997 p += hostname_len;
9676 size_t server_name_list_len, hostname_len;
9689 hostname_len = MBEDTLS_GET_UINT16_BE(p, 1);
9691 hostname_len + 3);
9700 ssl->handshake->sni_name_len = hostname_len;
9705 ssl, p + 3, hostname_len);
9715 p += hostname_len + 3;
9852 size_t hostname_len = 0;
9857 hostname_len = strlen(hostname);
9859 if (hostname_len > MBEDTLS_SSL_MAX_HOST_NAME_LEN) {
9875 session->hostname = mbedtls_calloc(1, hostname_len + 1);
9880 memcpy(session->hostname, hostname, hostname_len);