Home
last modified time | relevance | path

Searched refs:dtls_psk (Results 1 – 5 of 5) sorted by relevance

/third_party/libcoap/man/
Dcoap_endpoint_server.txt.in428 coap_dtls_spsk_t dtls_psk;
442 memset (&dtls_psk, 0, sizeof (dtls_psk));
445 dtls_psk.version = COAP_DTLS_SPSK_SETUP_VERSION;
446 dtls_psk.validate_id_call_back = verify_id_callback;
447 dtls_psk.id_call_back_arg = valid_id_list;
448 dtls_psk.validate_sni_call_back = verify_psk_sni_callback;
449 dtls_psk.sni_call_back_arg = valid_sni_list;
450 dtls_psk.psk_info.hint.s = (const uint8_t*)hint;
451 dtls_psk.psk_info.hint.length = hint ? strlen(hint) : 0;
452 dtls_psk.psk_info.key.s = key;
[all …]
Dcoap_endpoint_client.txt.in310 static coap_dtls_cpsk_t dtls_psk;
339 memset (&dtls_psk, 0, sizeof(dtls_psk));
340 dtls_psk.version = COAP_DTLS_CPSK_SETUP_VERSION;
341 dtls_psk.validate_ih_call_back = verify_ih_callback;
342 dtls_psk.ih_call_back_arg = &dtls_psk.psk_info;
347 dtls_psk.client_sni = client_sni;
348 dtls_psk.psk_info.identity.s = identity;
349 dtls_psk.psk_info.identity.length = identity_len;
350 dtls_psk.psk_info.key.s = key;
351 dtls_psk.psk_info.key.length = key_len;
[all …]
Dcoap_encryption.txt.in1092 coap_dtls_spsk_t dtls_psk;
1106 memset (&dtls_psk, 0, sizeof (dtls_psk));
1109 dtls_psk.version = COAP_DTLS_SPSK_SETUP_VERSION;
1110 dtls_psk.validate_id_call_back = verify_id_callback;
1111 dtls_psk.id_call_back_arg = valid_id_list;
1112 dtls_psk.validate_sni_call_back = verify_psk_sni_callback;
1113 dtls_psk.sni_call_back_arg = valid_sni_list;
1114 dtls_psk.psk_info.hint.s = (const uint8_t*)hint;
1115 dtls_psk.psk_info.hint.length = hint ? strlen(hint) : 0;
1116 dtls_psk.psk_info.key.s = key;
[all …]
/third_party/libcoap/examples/
Dcoap-rd.c683 coap_dtls_spsk_t dtls_psk; in fill_keystore() local
684 memset (&dtls_psk, 0, sizeof(dtls_psk)); in fill_keystore()
685 dtls_psk.version = COAP_DTLS_SPSK_SETUP_VERSION; in fill_keystore()
686 dtls_psk.validate_id_call_back = NULL; in fill_keystore()
687 dtls_psk.validate_sni_call_back = NULL; in fill_keystore()
688 dtls_psk.psk_info.hint.s = (const uint8_t *)hint; in fill_keystore()
689 dtls_psk.psk_info.hint.length = hint ? strlen(hint) : 0; in fill_keystore()
690 dtls_psk.psk_info.key.s = key; in fill_keystore()
691 dtls_psk.psk_info.key.length = key_length; in fill_keystore()
692 coap_context_set_psk2(ctx, &dtls_psk); in fill_keystore()
Dcoap-client.c1290 static coap_dtls_cpsk_t dtls_psk; in setup_psk() local
1294 memset (&dtls_psk, 0, sizeof(dtls_psk)); in setup_psk()
1295 dtls_psk.version = COAP_DTLS_CPSK_SETUP_VERSION; in setup_psk()
1296 dtls_psk.validate_ih_call_back = verify_ih_callback; in setup_psk()
1297 dtls_psk.ih_call_back_arg = &dtls_psk.psk_info; in setup_psk()
1303 dtls_psk.client_sni = client_sni; in setup_psk()
1304 dtls_psk.psk_info.identity.s = identity; in setup_psk()
1305 dtls_psk.psk_info.identity.length = identity_len; in setup_psk()
1306 dtls_psk.psk_info.key.s = key; in setup_psk()
1307 dtls_psk.psk_info.key.length = key_len; in setup_psk()
[all …]