Function esp_idf_sys::mbedtls_asn1_get_enum
source ยท pub unsafe extern "C" fn mbedtls_asn1_get_enum(
p: *mut *mut c_uchar,
end: *const c_uchar,
val: *mut c_int,
) -> c_int
Expand description
\brief Retrieve an enumerated ASN.1 tag and its value. Updates the pointer to immediately behind the full tag.
\param p On entry, \c *p points to the start of the ASN.1 element. On successful completion, \c *p points to the first byte beyond the ASN.1 element. On error, the value of \c *p is undefined. \param end End of data. \param val On success, the parsed value.
\return 0 if successful. \return An ASN.1 error code if the input does not start with a valid ASN.1 ENUMERATED. \return #MBEDTLS_ERR_ASN1_INVALID_LENGTH if the parsed value does not fit in an \c int.