Home
last modified time | relevance | path

Searched refs:pki_key (Results 1 – 11 of 11) sorted by relevance

/third_party/libcoap/src/
Dcoap_openssl.c123 coap_dtls_key_t pki_key; member
992 switch (setup_data->pki_key.key_type) { in setup_pki_server()
994 if (setup_data->pki_key.key.pem.public_cert && in setup_pki_server()
995 setup_data->pki_key.key.pem.public_cert[0]) { in setup_pki_server()
997 setup_data->pki_key.key.pem.public_cert, in setup_pki_server()
1002 setup_data->pki_key.key.pem.public_cert); in setup_pki_server()
1012 if (setup_data->pki_key.key.pem.private_key && in setup_pki_server()
1013 setup_data->pki_key.key.pem.private_key[0]) { in setup_pki_server()
1015 setup_data->pki_key.key.pem.private_key, in setup_pki_server()
1020 setup_data->pki_key.key.pem.private_key); in setup_pki_server()
[all …]
Dcoap_mbedtls.c112 coap_dtls_key_t pki_key; member
468 switch (setup_data->pki_key.key_type) { in setup_pki_credentials()
470 if (setup_data->pki_key.key.pem.public_cert && in setup_pki_credentials()
471 setup_data->pki_key.key.pem.public_cert[0] && in setup_pki_credentials()
472 setup_data->pki_key.key.pem.private_key && in setup_pki_credentials()
473 setup_data->pki_key.key.pem.private_key[0]) { in setup_pki_credentials()
479 setup_data->pki_key.key.pem.public_cert); in setup_pki_credentials()
487 setup_data->pki_key.key.pem.private_key, NULL); in setup_pki_credentials()
508 if (setup_data->pki_key.key.pem.ca_file && in setup_pki_credentials()
509 setup_data->pki_key.key.pem.ca_file[0]) { in setup_pki_credentials()
[all …]
Dcoap_gnutls.c107 coap_dtls_key_t pki_key; member
960 if (attempt == 0 && setup_data && setup_data->pki_key.key.pkcs11.user_pin) { in pin_callback()
961 int len = min(pin_max - 1, strlen(setup_data->pki_key.key.pkcs11.user_pin)); in pin_callback()
962 memcpy(pin, setup_data->pki_key.key.pkcs11.user_pin, len); in pin_callback()
1037 switch (setup_data->pki_key.key_type) { in setup_pki_credentials()
1039 if (setup_data->pki_key.key.pem.public_cert && in setup_pki_credentials()
1040 setup_data->pki_key.key.pem.public_cert[0] && in setup_pki_credentials()
1041 setup_data->pki_key.key.pem.private_key && in setup_pki_credentials()
1042 setup_data->pki_key.key.pem.private_key[0]) { in setup_pki_credentials()
1050 setup_data->pki_key.key.pem.public_cert, in setup_pki_credentials()
[all …]
Dcoap_tinydtls.c1008 switch (setup_data->pki_key.key_type) { in coap_dtls_context_set_pki()
1013 if (setup_data->pki_key.key.pem_buf.public_cert && in coap_dtls_context_set_pki()
1014 setup_data->pki_key.key.pem_buf.public_cert[0] && in coap_dtls_context_set_pki()
1015 setup_data->pki_key.key.pem_buf.private_key && in coap_dtls_context_set_pki()
1016 setup_data->pki_key.key.pem_buf.private_key[0]) { in coap_dtls_context_set_pki()
1019 setup_data->pki_key.key.pem_buf.private_key); in coap_dtls_context_set_pki()
1022 setup_data->pki_key.key.pem_buf.private_key); in coap_dtls_context_set_pki()
1039 setup_data->pki_key.key.pem_buf.public_cert); in coap_dtls_context_set_pki()
1042 setup_data->pki_key.key.pem_buf.private_key); in coap_dtls_context_set_pki()
1045 setup_data->pki_key.key.pem_buf.private_key); in coap_dtls_context_set_pki()
[all …]
/third_party/libcoap/examples/
Dcoap-client.c1251 dtls_pki.pki_key.key_type = COAP_PKI_KEY_PKCS11; in setup_pki()
1252 dtls_pki.pki_key.key.pkcs11.public_cert = cert_file; in setup_pki()
1253 dtls_pki.pki_key.key.pkcs11.private_key = key_file ? in setup_pki()
1255 dtls_pki.pki_key.key.pkcs11.ca = ca_file; in setup_pki()
1256 dtls_pki.pki_key.key.pkcs11.user_pin = pkcs11_pin; in setup_pki()
1259 dtls_pki.pki_key.key_type = COAP_PKI_KEY_PEM; in setup_pki()
1260 dtls_pki.pki_key.key.pem.public_cert = cert_file; in setup_pki()
1261 dtls_pki.pki_key.key.pem.private_key = key_file ? key_file : cert_file; in setup_pki()
1262 dtls_pki.pki_key.key.pem.ca_file = ca_file; in setup_pki()
1271 dtls_pki.pki_key.key_type = COAP_PKI_KEY_PEM_BUF; in setup_pki()
[all …]
Dcoap-rd.c667 dtls_pki.pki_key.key_type = COAP_PKI_KEY_PEM; in fill_keystore()
668 dtls_pki.pki_key.key.pem.public_cert = cert_file; in fill_keystore()
669 dtls_pki.pki_key.key.pem.private_key = cert_file; in fill_keystore()
670 dtls_pki.pki_key.key.pem.ca_file = ca_file; in fill_keystore()
Dcoap-server.c2055 update_pki_key(&dtls_pki.pki_key, key_file, cert_file, ca_file); in setup_pki()
/third_party/libcoap/man/
Dcoap_endpoint_client.txt.in267 dtls_pki.pki_key.key_type = COAP_PKI_KEY_PEM;
268 dtls_pki.pki_key.key.pem.ca_file = ca_file;
269 dtls_pki.pki_key.key.pem.public_cert = public_cert_file;
270 dtls_pki.pki_key.key.pem.private_key = private_key_file;
Dcoap_endpoint_server.txt.in323 dtls_pki.pki_key.key_type = COAP_PKI_KEY_PEM;
324 dtls_pki.pki_key.key.pem.ca_file = ca_file;
325 dtls_pki.pki_key.key.pem.public_cert = public_cert_file;
326 dtls_pki.pki_key.key.pem.private_key = private_key_file;
Dcoap_encryption.txt.in466 coap_dtls_key_t pki_key; /* PKI key definition */
980 dtls_pki.pki_key.key_type = COAP_PKI_KEY_PEM;
981 dtls_pki.pki_key.key.pem.ca_file = ca_file;
982 dtls_pki.pki_key.key.pem.public_cert = public_cert_file;
983 dtls_pki.pki_key.key.pem.private_key = private_key_file;
/third_party/libcoap/include/coap3/
Dcoap_dtls.h301 coap_dtls_key_t pki_key; /**< PKI key definition */ member