Home
last modified time | relevance | path

Searched refs:pem_buf (Results 1 – 8 of 8) sorted by relevance

/third_party/libcoap/src/
Dcoap_mbedtls.c522 if (setup_data->pki_key.key.pem_buf.public_cert && in setup_pki_credentials()
523 setup_data->pki_key.key.pem_buf.public_cert_len && in setup_pki_credentials()
524 setup_data->pki_key.key.pem_buf.private_key && in setup_pki_credentials()
525 setup_data->pki_key.key.pem_buf.private_key_len) { in setup_pki_credentials()
532 length = setup_data->pki_key.key.pem_buf.public_cert_len; in setup_pki_credentials()
533 if (setup_data->pki_key.key.pem_buf.public_cert[length-1] != '\000') { in setup_pki_credentials()
540 memcpy(buffer, setup_data->pki_key.key.pem_buf.public_cert, length); in setup_pki_credentials()
548 setup_data->pki_key.key.pem_buf.public_cert, in setup_pki_credentials()
549 setup_data->pki_key.key.pem_buf.public_cert_len); in setup_pki_credentials()
557 length = setup_data->pki_key.key.pem_buf.private_key_len; in setup_pki_credentials()
[all …]
Dcoap_tinydtls.c1013 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()
Dcoap_gnutls.c1082 if (setup_data->pki_key.key.pem_buf.public_cert && in setup_pki_credentials()
1083 setup_data->pki_key.key.pem_buf.public_cert_len && in setup_pki_credentials()
1084 setup_data->pki_key.key.pem_buf.private_key && in setup_pki_credentials()
1085 setup_data->pki_key.key.pem_buf.private_key_len) { in setup_pki_credentials()
1091 cert.size = setup_data->pki_key.key.pem_buf.public_cert_len; in setup_pki_credentials()
1092 if (setup_data->pki_key.key.pem_buf.public_cert[cert.size-1] != '\000') { in setup_pki_credentials()
1100 memcpy(cert.data, setup_data->pki_key.key.pem_buf.public_cert, in setup_pki_credentials()
1108 &setup_data->pki_key.key.pem_buf.public_cert, sizeof(cert.data)); in setup_pki_credentials()
1110 key.size = setup_data->pki_key.key.pem_buf.private_key_len; in setup_pki_credentials()
1111 if (setup_data->pki_key.key.pem_buf.private_key[key.size-1] != '\000') { in setup_pki_credentials()
[all …]
Dcoap_openssl.c1070 if (setup_data->pki_key.key.pem_buf.public_cert && in setup_pki_server()
1071 setup_data->pki_key.key.pem_buf.public_cert_len) { in setup_pki_server()
1072 BIO *bp = BIO_new_mem_buf(setup_data->pki_key.key.pem_buf.public_cert, in setup_pki_server()
1073 setup_data->pki_key.key.pem_buf.public_cert_len); in setup_pki_server()
1093 if (setup_data->pki_key.key.pem_buf.private_key && in setup_pki_server()
1094 setup_data->pki_key.key.pem_buf.private_key_len) { in setup_pki_server()
1095 BIO *bp = BIO_new_mem_buf(setup_data->pki_key.key.pem_buf.private_key, in setup_pki_server()
1096 setup_data->pki_key.key.pem_buf.private_key_len); in setup_pki_server()
1116 if (setup_data->pki_key.key.pem_buf.ca_cert && in setup_pki_server()
1117 setup_data->pki_key.key.pem_buf.ca_cert_len) { in setup_pki_server()
[all …]
/third_party/libcoap/examples/
Dcoap-client.c1272 dtls_pki.pki_key.key.pem_buf.ca_cert = ca_mem; in setup_pki()
1273 dtls_pki.pki_key.key.pem_buf.public_cert = cert_mem; in setup_pki()
1274 dtls_pki.pki_key.key.pem_buf.private_key = key_mem ? key_mem : cert_mem; in setup_pki()
1275 dtls_pki.pki_key.key.pem_buf.ca_cert_len = ca_mem_len; in setup_pki()
1276 dtls_pki.pki_key.key.pem_buf.public_cert_len = cert_mem_len; in setup_pki()
1277 dtls_pki.pki_key.key.pem_buf.private_key_len = key_mem ? in setup_pki()
Dcoap-server.c1884 dtls_key->key.pem_buf.ca_cert = ca_mem; in update_pki_key()
1885 dtls_key->key.pem_buf.public_cert = cert_mem; in update_pki_key()
1886 dtls_key->key.pem_buf.private_key = key_mem ? key_mem : cert_mem; in update_pki_key()
1887 dtls_key->key.pem_buf.ca_cert_len = ca_mem_len; in update_pki_key()
1888 dtls_key->key.pem_buf.public_cert_len = cert_mem_len; in update_pki_key()
1889 dtls_key->key.pem_buf.private_key_len = key_mem ? in update_pki_key()
/third_party/libcoap/include/coap3/
Dcoap_dtls.h216 coap_pki_key_pem_buf_t pem_buf; /**< for PEM memory keys */ member
/third_party/libcoap/man/
Dcoap_encryption.txt.in599 coap_pki_key_pem_buf_t pem_buf; /* for PEM memory keys */
721 *key.pem_buf.ca_cert* points to the CA location in memory which will be in
727 *key.pem_buf.ca_cert_len* is the length of the CA.
729 *key.pem_buf.public_cert* points to the public certificate (or public key if
732 *key.pem_buf.public_cert_len* is the length of the public certificate.
734 *key.pem_buf.private_key* points to the private key location in memory which
738 *key.pem_buf.private_key* is the length of the private key.