/third_party/libcoap/examples/ |
D | coap-client.c | 1201 static char client_sni[256]; in setup_pki() local 1213 memset(client_sni, 0, sizeof(client_sni)); in setup_pki() 1243 memcpy(client_sni, uri.host.s, min(uri.host.length, sizeof(client_sni)-1)); in setup_pki() 1245 memcpy(client_sni, "localhost", 9); in setup_pki() 1247 dtls_pki.client_sni = client_sni; in setup_pki() 1291 static char client_sni[256]; in setup_psk() local 1293 memset(client_sni, 0, sizeof(client_sni)); in setup_psk() 1299 memcpy(client_sni, uri.host.s, in setup_psk() 1300 min(uri.host.length, sizeof(client_sni) - 1)); in setup_psk() 1302 memcpy(client_sni, "localhost", 9); in setup_psk() [all …]
|
D | coap-server.c | 766 setup_cpsk(char *client_sni) { in setup_cpsk() argument 771 dtls_cpsk.client_sni = client_sni; in setup_cpsk() 890 static char client_sni[256]; in get_ongoing_proxy_session() local 939 memset(client_sni, 0, sizeof(client_sni)); in get_ongoing_proxy_session() 942 memcpy(client_sni, server.s, min(server.length, sizeof(client_sni)-1)); in get_ongoing_proxy_session() 944 memcpy(client_sni, "localhost", 9); in get_ongoing_proxy_session() 949 client_sni); in get_ongoing_proxy_session() 958 coap_dtls_cpsk_t *dtls_cpsk = setup_cpsk(client_sni); in get_ongoing_proxy_session() 2006 setup_pki(coap_context_t *ctx, coap_dtls_role_t role, char *client_sni) { in setup_pki() argument 2052 dtls_pki.client_sni = client_sni; in setup_pki()
|
/third_party/libcoap/include/coap3/ |
D | coap_dtls.h | 297 char* client_sni; /**< If not NULL, SNI to use in client TLS setup. member 362 char* client_sni; /**< If not NULL, SNI to use in client TLS setup. member
|
/third_party/libcoap/man/ |
D | coap_endpoint_client.txt.in | 266 dtls_pki.client_sni = NULL; 311 static char client_sni[256]; 344 memcpy(client_sni, uri, min(strlen(uri), sizeof(client_sni)-1)); 346 memcpy(client_sni, "localhost", 9); 347 dtls_psk.client_sni = client_sni;
|
D | coap_endpoint_server.txt.in | 322 dtls_pki.client_sni = NULL; 505 static char client_sni[256]; 537 memcpy(client_sni, uri, min(strlen(uri), sizeof(client_sni)-1)); 539 memcpy(client_sni, "localhost", 9); 540 dtls_psk.client_sni = client_sni;
|
D | coap_encryption.txt.in | 142 char* client_sni; /* If not NULL, SNI to use in client TLS setup. 213 *client_sni* points to the SNI name that will be added in as a TLS extension, 462 char* client_sni; /* If not NULL, SNI to use in client TLS setup. 663 *client_sni* points to the SNI name that will be added in as a TLS extension, 979 dtls_pki.client_sni = NULL; 1167 static char client_sni[256]; 1200 memcpy(client_sni, uri, min(strlen(uri), sizeof(client_sni)-1)); 1202 memcpy(client_sni, "localhost", 9); 1203 dtls_psk.client_sni = client_sni;
|
/third_party/libcoap/src/ |
D | coap_gnutls.c | 1710 if (setup_data->client_sni) { in setup_client_ssl_session() 1712 setup_data->client_sni, in setup_client_ssl_session() 1713 strlen(setup_data->client_sni)), in setup_client_ssl_session() 1767 if (setup_data->client_sni) { in setup_client_ssl_session() 1769 setup_data->client_sni, in setup_client_ssl_session() 1770 strlen(setup_data->client_sni)), in setup_client_ssl_session()
|
D | coap_mbedtls.c | 1080 if (c_session->cpsk_setup_data.client_sni) { in setup_client_ssl_session() 1082 c_session->cpsk_setup_data.client_sni); in setup_client_ssl_session() 1116 if (m_context->setup_data.client_sni) { in setup_client_ssl_session() 1117 mbedtls_ssl_set_hostname(&m_env->ssl, m_context->setup_data.client_sni); in setup_client_ssl_session()
|
D | coap_openssl.c | 2814 if (setup_data->client_sni && in setup_client_ssl_session() 2815 SSL_set_tlsext_host_name (ssl, setup_data->client_sni) != 1) { in setup_client_ssl_session() 2817 setup_data->client_sni); in setup_client_ssl_session() 2846 if (setup_data->client_sni && in setup_client_ssl_session() 2847 SSL_set_tlsext_host_name (ssl, setup_data->client_sni) != 1) { in setup_client_ssl_session() 2849 setup_data->client_sni); in setup_client_ssl_session()
|