Function esp_idf_sys::mbedtls_x509write_crt_set_extension
source · pub unsafe extern "C" fn mbedtls_x509write_crt_set_extension(
ctx: *mut mbedtls_x509write_cert,
oid: *const c_char,
oid_len: usize,
critical: c_int,
val: *const c_uchar,
val_len: usize,
) -> c_int
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