CBS_get_u16
int CBS_get_u16(CBS *cbs, uint16_t *out);
if (!CBS_get_u16(&cbs, &afi))
int CBS_get_u16(CBS *cbs, uint16_t *out);
if (!CBS_get_u16(header, &seq))
if (!CBS_get_u16(&header, &ssl_version))
if (!CBS_get_u16(&seq_no, &epoch))
if (!CBS_get_u16(&header, &len))
if (!CBS_get_u16(&cipher_suite, &s->cipher_value))
if (!CBS_get_u16(&cbs, &cipher_value))
if (!CBS_get_u16(cbs, &cipher_value)) {
if (!CBS_get_u16(cbs, &group_id))
if (!CBS_get_u16(&cbs, &sigalg_value))
if (!CBS_get_u16(&hello_verify_request, &ssl_version))
if (!CBS_get_u16(&cbs, &server_version))
if (!CBS_get_u16(&cbs, &cipher_suite))
!CBS_get_u16(&header, &ssl_version) ||
!CBS_get_u16(&header, &len)) {
if (!CBS_get_u16(&cbs, &sigalg_value))
if (!CBS_get_u16(&cbs, &sigalg_value))
if (!CBS_get_u16(&cbs, &client_version))
if (!CBS_get_u16(&profiles, &id))
if (!CBS_get_u16(&profile_ids, &id) || CBS_len(&profile_ids) != 0) {
if (!CBS_get_u16(&client_shares, &group))
if (!CBS_get_u16(&client_shares, &group))
if (!CBS_get_u16(cbs, &group))
if (!CBS_get_u16(&versions, &version))
if (!CBS_get_u16(cbs, &selected_version))
if (!CBS_get_u16(&extensions, &type))
if (!CBS_get_u16(&grouplist, &groups[i]))
if (!CBS_get_u16(&extensions, &ext_type) ||
if (!CBS_get_u16(&cbs, &version))
if (!CBS_get_u16(&extensions, &type))
if (!CBS_get_u16(&extension_data, &selected_version))
if (!CBS_get_u16(&server_hello, &legacy_version))
if (!CBS_get_u16(cbs, &legacy_version))
if (!CBS_get_u16(cbs, &cipher_suite))
if (!CBS_get_u16(cbs, &signature_scheme))
if (!CBS_get_u16(&cbs, &rec_version))
if (!CBS_get_u16(&cbs, &rec_len))
if (!CBS_get_u16(cbs, &legacy_version))
if (!CBS_get_u16(&extensions, &type))
if (!CBS_get_u16(&versions, &version))
if (!CBS_get_u16(cbs, &signature_scheme))
CHECK(CBS_get_u16(&prefixed, &u16));
CHECK(CBS_get_u16(&data, &u16));