Lines Matching refs:tlsext_hostname
377 if (s->tlsext_hostname != NULL) in ssl_add_clienthello_tlsext()
392 || (size_str = strlen(s->tlsext_hostname)) > (unsigned long)lenmax) in ssl_add_clienthello_tlsext()
405 memcpy(ret, s->tlsext_hostname, size_str); in ssl_add_clienthello_tlsext()
717 if (!s->hit && s->servername_done == 1 && s->session->tlsext_hostname != NULL) in ssl_add_serverhello_tlsext()
1099 if(s->session->tlsext_hostname) in ssl_parse_clienthello_tlsext()
1109 if ((s->session->tlsext_hostname = OPENSSL_malloc(len+1)) == NULL) in ssl_parse_clienthello_tlsext()
1114 memcpy(s->session->tlsext_hostname, sdata, len); in ssl_parse_clienthello_tlsext()
1115 s->session->tlsext_hostname[len]='\0'; in ssl_parse_clienthello_tlsext()
1116 if (strlen(s->session->tlsext_hostname) != len) { in ssl_parse_clienthello_tlsext()
1117 OPENSSL_free(s->session->tlsext_hostname); in ssl_parse_clienthello_tlsext()
1118 s->session->tlsext_hostname = NULL; in ssl_parse_clienthello_tlsext()
1126 s->servername_done = s->session->tlsext_hostname in ssl_parse_clienthello_tlsext()
1127 && strlen(s->session->tlsext_hostname) == len in ssl_parse_clienthello_tlsext()
1128 && strncmp(s->session->tlsext_hostname, (char *)sdata, len) == 0; in ssl_parse_clienthello_tlsext()
1574 if (s->tlsext_hostname == NULL || size > 0) in ssl_parse_serverhello_tlsext()
1802 if (s->tlsext_hostname) in ssl_parse_serverhello_tlsext()
1804 if (s->session->tlsext_hostname == NULL) in ssl_parse_serverhello_tlsext()
1806 s->session->tlsext_hostname = BUF_strdup(s->tlsext_hostname); in ssl_parse_serverhello_tlsext()
1807 if (!s->session->tlsext_hostname) in ssl_parse_serverhello_tlsext()