Function esp_idf_sys::mbedtls_x509write_crt_set_key_usage
source ยท pub unsafe extern "C" fn mbedtls_x509write_crt_set_key_usage(
ctx: *mut mbedtls_x509write_cert,
key_usage: c_uint,
) -> c_int
Expand description
\brief Set the Key Usage Extension flags (e.g. MBEDTLS_X509_KU_DIGITAL_SIGNATURE | MBEDTLS_X509_KU_KEY_CERT_SIGN)
\param ctx CRT context to use \param key_usage key usage flags to set
\return 0 if successful, or MBEDTLS_ERR_X509_ALLOC_FAILED