Lines Matching refs:sni
119 char *sni; member
128 char *sni; member
2062 const char *sni = SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name); in tls_server_name_call_back() local
2065 if (!sni || !sni[0]) { in tls_server_name_call_back()
2066 sni = ""; in tls_server_name_call_back()
2069 if (!strcasecmp(sni, context->sni_entry_list[i].sni)) { in tls_server_name_call_back()
2076 coap_dtls_key_t *new_entry = setup_data->validate_sni_call_back(sni, in tls_server_name_call_back()
2115 context->sni_entry_list[context->sni_count].sni = OPENSSL_strdup(sni); in tls_server_name_call_back()
2158 const char *sni = SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name); in psk_tls_server_name_call_back() local
2162 if (!sni || !sni[0]) { in psk_tls_server_name_call_back()
2163 sni = ""; in psk_tls_server_name_call_back()
2166 if (!strcasecmp(sni, (char*)o_context->psk_sni_entry_list[i].sni)) { in psk_tls_server_name_call_back()
2173 setup_data->validate_sni_call_back(sni, in psk_tls_server_name_call_back()
2211 o_context->psk_sni_entry_list[o_context->psk_sni_count].sni = in psk_tls_server_name_call_back()
2212 OPENSSL_strdup(sni); in psk_tls_server_name_call_back()
2362 const char *sni = ""; in tls_client_hello_call_back() local
2377 sni = sni_tmp; in tls_client_hello_call_back()
2381 if (!strcasecmp(sni, context->sni_entry_list[i].sni)) { in tls_client_hello_call_back()
2389 coap_dtls_key_t *new_entry = setup_data->validate_sni_call_back(sni, in tls_client_hello_call_back()
2399 context->sni_entry_list[context->sni_count].sni = OPENSSL_strdup(sni); in tls_client_hello_call_back()
2483 const char *sni = ""; in psk_tls_client_hello_call_back() local
2500 sni = sni_tmp; in psk_tls_client_hello_call_back()
2506 if (strcasecmp(sni, o_context->psk_sni_entry_list[i].sni) == 0) { in psk_tls_client_hello_call_back()
2516 sni, in psk_tls_client_hello_call_back()
2529 o_context->psk_sni_entry_list[o_context->psk_sni_count].sni = in psk_tls_client_hello_call_back()
2530 OPENSSL_strdup(sni); in psk_tls_client_hello_call_back()
2531 if (o_context->psk_sni_entry_list[o_context->psk_sni_count].sni) { in psk_tls_client_hello_call_back()
2730 OPENSSL_free(context->sni_entry_list[i].sni); in coap_dtls_free_context()
2738 OPENSSL_free((char*)context->psk_sni_entry_list[i].sni); in coap_dtls_free_context()