Function esp_idf_svc::hal::sys::mbedtls_x509write_crt_set_serial_raw

source ยท
pub unsafe extern "C" fn mbedtls_x509write_crt_set_serial_raw(
    ctx: *mut mbedtls_x509write_cert,
    serial: *mut u8,
    serial_len: usize,
) -> i32
Expand description

\brief Set the serial number for a Certificate.

\param ctx CRT context to use \param serial A raw array of bytes containing the serial number in big endian format \param serial_len Length of valid bytes (expressed in bytes) in \p serial input buffer

\return 0 if successful, or MBEDTLS_ERR_X509_BAD_INPUT_DATA if the provided input buffer is too big (longer than MBEDTLS_X509_RFC5280_MAX_SERIAL_LEN)