Lines Matching refs:cbs
207 static int tls1_check_duplicate_extensions(const CBS *cbs)
209 CBS extensions = *cbs;
218 CBS extension;
242 extensions = *cbs;
245 CBS extension;
275 CBS client_hello, session_id, cipher_suites, compression_methods, extensions;
296 CBS cookie;
343 CBS extensions;
350 CBS extension;
457 int tls1_check_curve(SSL *s, CBS *cbs, uint16_t *out_curve_id)
465 if (!CBS_get_u8(cbs, &curve_type) ||
467 !CBS_get_u16(cbs, &curve_id))
748 * |cbs|. It checks it is consistent with |s|'s sent supported
754 SSL *s, CBS *cbs, EVP_PKEY *pkey)
767 if (!CBS_get_u8(cbs, &hash) ||
768 !CBS_get_u8(cbs, &signature))
1364 * cbs: the contents of the extension, not including the type and length.
1369 static int tls1_alpn_handle_client_hello(SSL *s, CBS *cbs, int *out_alert)
1371 CBS protocol_name_list, protocol_name_list_copy;
1379 if (!CBS_get_u16_length_prefixed(cbs, &protocol_name_list) ||
1380 CBS_len(cbs) != 0 ||
1388 CBS protocol_name;
1415 static int ssl_scan_clienthello_tlsext(SSL *s, CBS *cbs, int *out_alert)
1418 CBS extensions;
1451 if (CBS_len(cbs) == 0)
1457 if (!CBS_get_u16_length_prefixed(cbs, &extensions) ||
1467 CBS extension;
1508 CBS server_name_list;
1523 CBS host_name;
1585 CBS ec_point_format_list;
1607 CBS elliptic_curve_list;
1668 CBS supported_signature_algorithms;
1796 int ssl_parse_clienthello_tlsext(SSL *s, CBS *cbs)
1799 if (ssl_scan_clienthello_tlsext(s, cbs, &alert) <= 0)
1816 static char ssl_next_proto_validate(const CBS *cbs)
1818 CBS copy = *cbs;
1822 CBS proto;
1832 static int ssl_scan_serverhello_tlsext(SSL *s, CBS *cbs, int *out_alert)
1836 CBS extensions;
1853 if (CBS_len(cbs) == 0)
1859 if (!CBS_get_u16_length_prefixed(cbs, &extensions) ||
1869 CBS extension;
1903 CBS ec_point_format_list;
1995 CBS protocol_name_list, protocol_name;
2222 int ssl_parse_serverhello_tlsext(SSL *s, CBS *cbs)
2228 if (ssl_scan_serverhello_tlsext(s, cbs, &alert) <= 0)
2667 int tls1_process_sigalgs(SSL *s, const CBS *sigalgs)