Function esp_idf_svc::sys::mbedtls_x509write_crt_set_extension
source · pub unsafe extern "C" fn mbedtls_x509write_crt_set_extension(
ctx: *mut mbedtls_x509write_cert,
oid: *const i8,
oid_len: usize,
critical: i32,
val: *const u8,
val_len: usize,
) -> i32
Expand description
\brief Generic function to add to or replace an extension in the CRT
\param ctx CRT context to use \param oid OID of the extension \param oid_len length of the OID \param critical if the extension is critical (per the RFC’s definition) \param val value of the extension OCTET STRING \param val_len length of the value data
\return 0 if successful, or a MBEDTLS_ERR_X509_ALLOC_FAILED