Lines Matching refs:hostname
4448 ssl->hostname, in mbedtls_ssl_parse_certificate()
5963 int mbedtls_ssl_set_hostname( mbedtls_ssl_context *ssl, const char *hostname ) in mbedtls_ssl_set_hostname() argument
5967 if( hostname == NULL ) in mbedtls_ssl_set_hostname()
5970 hostname_len = strlen( hostname ); in mbedtls_ssl_set_hostname()
5978 ssl->hostname = mbedtls_calloc( 1, hostname_len + 1 ); in mbedtls_ssl_set_hostname()
5980 if( ssl->hostname == NULL ) in mbedtls_ssl_set_hostname()
5983 memcpy( ssl->hostname, hostname, hostname_len ); in mbedtls_ssl_set_hostname()
5985 ssl->hostname[hostname_len] = '\0'; in mbedtls_ssl_set_hostname()
7101 if( ssl->hostname != NULL ) in mbedtls_ssl_free()
7103 mbedtls_zeroize( ssl->hostname, strlen( ssl->hostname ) ); in mbedtls_ssl_free()
7104 mbedtls_free( ssl->hostname ); in mbedtls_ssl_free()