Function esp_idf_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 c_uchar,
serial_len: usize,
) -> c_int
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)