pub unsafe extern "C" fn mbedtls_ecp_tls_read_group_id(
    grp: *mut mbedtls_ecp_group_id,
    buf: *mut *const c_uchar,
    len: usize
) -> c_int
Expand description

\brief This function extracts an elliptic curve group ID from a TLS ECParameters record as defined in RFC 4492, Section 5.4.

\note The read pointer \p buf is updated to point right after the ECParameters record on exit.

\param grp The address at which to store the group id. This must not be \c NULL. \param buf The address of the pointer to the start of the input buffer. \param len The length of the input buffer \c *buf in Bytes.

\return \c 0 on success. \return #MBEDTLS_ERR_ECP_BAD_INPUT_DATA if input is invalid. \return #MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE if the group is not recognized. \return Another negative error code on other kinds of failure.