pub unsafe extern "C" fn otCoapSecureSetCertificate(
aInstance: *mut otInstance,
aX509Cert: *const u8,
aX509Length: u32,
aPrivateKey: *const u8,
aPrivateKeyLength: u32,
)
Expand description
Sets the local device’s X509 certificate with corresponding private key for DTLS session with DTLS_ECDHE_ECDSA_WITH_AES_128_CCM_8.
@note This function requires MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=1
.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aX509Cert A pointer to the PEM formatted X509 certificate. @param[in] aX509Length The length of certificate. @param[in] aPrivateKey A pointer to the PEM formatted private key. @param[in] aPrivateKeyLength The length of the private key.