mbedtls_ecp_tls_read_group_id() function
This function extracts an elliptic curve group ID from a TLS ECParameters record as defined in RFC 4492, Section 5.4.
Arguments
grp
The address at which to store the group id. This must not be \c NULL.
buf
The address of the pointer to the start of the input buffer.
len
The length of the input buffer \c *buf in Bytes.
Return value
\c 0 on success. #MBEDTLS_ERR_ECP_BAD_INPUT_DATA if input is invalid. #MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE if the group is not recognized. Another negative error code on other kinds of failure.
Notes
The read pointer \p buf is updated to point right after the ECParameters record on exit.