Function esp_idf_svc::sys::mbedtls_x509write_crt_der
source ยท pub unsafe extern "C" fn mbedtls_x509write_crt_der(
ctx: *mut mbedtls_x509write_cert,
buf: *mut u8,
size: usize,
f_rng: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: usize) -> i32>,
p_rng: *mut c_void,
) -> i32
Expand description
\brief Write a built up certificate to a X509 DER structure Note: data is written at the end of the buffer! Use the return value to determine where you should start using the buffer
\param ctx certificate to write away \param buf buffer to write to \param size size of the buffer \param f_rng RNG function. This must not be \c NULL. \param p_rng RNG parameter
\return length of data written if successful, or a specific error code
\note \p f_rng is used for the signature operation.