pub unsafe extern "C" fn mbedtls_x509write_crt_der(
    ctx: *mut mbedtls_x509write_cert,
    buf: *mut c_uchar,
    size: usize,
    f_rng: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_uchar, arg3: usize) -> c_int>,
    p_rng: *mut c_void
) -> c_int
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.