Searched refs:pem_buf (Results 1 – 8 of 8) sorted by relevance
522 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 …]
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()
1082 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 …]
1070 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 …]
1272 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()
1884 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()
216 coap_pki_key_pem_buf_t pem_buf; /**< for PEM memory keys */ member
599 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 in727 *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 if732 *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 which738 *key.pem_buf.private_key* is the length of the private key.