openthread_sys

Function otCoapSecureSetCaCertificateChain

Source
pub unsafe extern "C" fn otCoapSecureSetCaCertificateChain(
    aInstance: *mut otInstance,
    aX509CaCertificateChain: *const u8,
    aX509CaCertChainLength: u32,
)
Expand description

Sets the trusted top level CAs. It is needed for validating the certificate of the peer.

DTLS mode “ECDHE ECDSA with AES 128 CCM 8” for Application CoAPS.

@note This function requires MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=1.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aX509CaCertificateChain A pointer to the PEM formatted X509 CA chain. @param[in] aX509CaCertChainLength The length of chain.