Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 7 of 7) sorted by relevance

/mbedtls-3.7.0/library/
Dssl_client.c36 if (ssl->hostname == NULL) { in ssl_write_hostname_ext()
42 ssl->hostname)); in ssl_write_hostname_ext()
44 hostname_len = strlen(ssl->hostname); in ssl_write_hostname_ext()
88 memcpy(p, ssl->hostname, hostname_len); in ssl_write_hostname_ext()
886 int hostname_mismatch = ssl->hostname != NULL || in ssl_prepare_client_hello()
887 session_negotiate->hostname != NULL; in ssl_prepare_client_hello()
888 if (ssl->hostname != NULL && session_negotiate->hostname != NULL) { in ssl_prepare_client_hello()
890 ssl->hostname, session_negotiate->hostname) != 0; in ssl_prepare_client_hello()
901 ssl->hostname); in ssl_prepare_client_hello()
Dssl_tls.c237 dst->hostname = NULL; in mbedtls_ssl_session_copy()
307 ret = mbedtls_ssl_session_set_hostname(dst, src->hostname); in mbedtls_ssl_session_copy()
2773 int mbedtls_ssl_set_hostname(mbedtls_ssl_context *ssl, const char *hostname) in mbedtls_ssl_set_hostname() argument
2780 if (hostname != NULL) { in mbedtls_ssl_set_hostname()
2781 hostname_len = strlen(hostname); in mbedtls_ssl_set_hostname()
2791 if (ssl->hostname != NULL) { in mbedtls_ssl_set_hostname()
2792 mbedtls_zeroize_and_free(ssl->hostname, strlen(ssl->hostname)); in mbedtls_ssl_set_hostname()
2797 if (hostname == NULL) { in mbedtls_ssl_set_hostname()
2798 ssl->hostname = NULL; in mbedtls_ssl_set_hostname()
2800 ssl->hostname = mbedtls_calloc(1, hostname_len + 1); in mbedtls_ssl_set_hostname()
[all …]
Dssl_tls13_generic.c704 ssl->hostname, in ssl_tls13_validate_certificate()
Dssl_misc.h2852 const char *hostname);
/mbedtls-3.7.0/programs/ssl/
Dssl_mail_client.c334 char hostname[32]; in main() local
623 gethostname(hostname, 32); in main()
624 len = sprintf((char *) buf, "EHLO %s\r\n", hostname); in main()
645 gethostname(hostname, 32); in main()
646 len = sprintf((char *) buf, "EHLO %s\r\n", hostname); in main()
658 gethostname(hostname, 32); in main()
/mbedtls-3.7.0/include/mbedtls/
Dssl.h1304 char *MBEDTLS_PRIVATE(hostname); /*!< host name binded with tickets */
1881 char *MBEDTLS_PRIVATE(hostname); /*!< expected peer CN for verification
3971 int mbedtls_ssl_set_hostname(mbedtls_ssl_context *ssl, const char *hostname);
3985 return ssl->MBEDTLS_PRIVATE(hostname); in mbedtls_ssl_get_hostname()
/mbedtls-3.7.0/
DChangeLog356 * X.509 hostname verification now supports IPAddress Subject Alternate Names.
372 * X.509 hostname verification now partially supports URI Subject Alternate
409 `mbedtls_ssl_context.hostname`.
4242 overflow of the hostname or session ticket. Found by Guido Vranken,
4277 * Added checking of hostname length in mbedtls_ssl_set_hostname() to ensure
5016 * Fixed X.509 hostname comparison (with non-regular characters)
5255 * Fixed X.509 hostname comparison (with non-regular characters)
5316 * Fixed potential heap buffer overflow on large hostname setting
5526 * Potential heap buffer overflow on large hostname setting
5978 * Added support on the client side for the TLS "hostname" extension