Function esp_idf_hal::sys::mbedtls_x509write_crt_set_basic_constraints
source ยท pub unsafe extern "C" fn mbedtls_x509write_crt_set_basic_constraints(
ctx: *mut mbedtls_x509write_cert,
is_ca: i32,
max_pathlen: i32,
) -> i32
Expand description
\brief Set the basicConstraints extension for a CRT
\param ctx CRT context to use \param is_ca is this a CA certificate \param max_pathlen maximum length of certificate chains below this certificate (only for CA certificates, -1 is unlimited)
\return 0 if successful, or a MBEDTLS_ERR_X509_ALLOC_FAILED