• Home
  • Raw
  • Download

Lines Matching refs:contents

669   int (*parse_serverhello)(SSL *ssl, uint8_t *out_alert, CBS *contents);
671 int (*parse_clienthello)(SSL *ssl, uint8_t *out_alert, CBS *contents);
689 CBB contents, server_name_list, name; in ext_sni_add_clienthello() local
691 !CBB_add_u16_length_prefixed(out, &contents) || in ext_sni_add_clienthello()
692 !CBB_add_u16_length_prefixed(&contents, &server_name_list) || in ext_sni_add_clienthello()
705 CBS *contents) { in ext_sni_parse_serverhello() argument
706 if (contents == NULL) { in ext_sni_parse_serverhello()
710 if (CBS_len(contents) != 0) { in ext_sni_parse_serverhello()
729 CBS *contents) { in ext_sni_parse_clienthello() argument
730 if (contents == NULL) { in ext_sni_parse_clienthello()
759 if (!CBS_get_u16_length_prefixed(contents, &server_name_list) || in ext_sni_parse_clienthello()
761 CBS_len(contents) != 0) { in ext_sni_parse_clienthello()
836 CBB contents, prev_finished; in ext_ri_add_clienthello() local
838 !CBB_add_u16_length_prefixed(out, &contents) || in ext_ri_add_clienthello()
839 !CBB_add_u8_length_prefixed(&contents, &prev_finished) || in ext_ri_add_clienthello()
850 CBS *contents) { in ext_ri_parse_serverhello() argument
854 (contents != NULL) != ssl->s3->send_connection_binding) { in ext_ri_parse_serverhello()
860 if (contents == NULL) { in ext_ri_parse_serverhello()
880 if (!CBS_get_u8_length_prefixed(contents, &renegotiated_connection) || in ext_ri_parse_serverhello()
881 CBS_len(contents) != 0) { in ext_ri_parse_serverhello()
915 CBS *contents) { in ext_ri_parse_clienthello() argument
923 if (contents == NULL) { in ext_ri_parse_clienthello()
928 contents = &fake_contents; in ext_ri_parse_clienthello()
939 if (!CBS_get_u8_length_prefixed(contents, &renegotiated_connection) || in ext_ri_parse_clienthello()
940 CBS_len(contents) != 0) { in ext_ri_parse_clienthello()
960 CBB contents, prev_finished; in ext_ri_add_serverhello() local
962 !CBB_add_u16_length_prefixed(out, &contents) || in ext_ri_add_serverhello()
963 !CBB_add_u8_length_prefixed(&contents, &prev_finished) || in ext_ri_add_serverhello()
998 CBS *contents) { in ext_ems_parse_serverhello() argument
999 if (contents == NULL) { in ext_ems_parse_serverhello()
1003 if (ssl->version == SSL3_VERSION || CBS_len(contents) != 0) { in ext_ems_parse_serverhello()
1012 CBS *contents) { in ext_ems_parse_clienthello() argument
1013 if (ssl->version == SSL3_VERSION || contents == NULL) { in ext_ems_parse_clienthello()
1017 if (CBS_len(contents) != 0) { in ext_ems_parse_clienthello()
1074 CBS *contents) { in ext_ticket_parse_serverhello() argument
1077 if (contents == NULL) { in ext_ticket_parse_serverhello()
1086 if (CBS_len(contents) != 0) { in ext_ticket_parse_serverhello()
1095 CBS *contents) { in ext_ticket_parse_clienthello() argument
1131 CBB contents, sigalgs; in ext_sigalgs_add_clienthello() local
1133 !CBB_add_u16_length_prefixed(out, &contents) || in ext_sigalgs_add_clienthello()
1134 !CBB_add_u16_length_prefixed(&contents, &sigalgs) || in ext_sigalgs_add_clienthello()
1144 CBS *contents) { in ext_sigalgs_parse_serverhello() argument
1145 if (contents != NULL) { in ext_sigalgs_parse_serverhello()
1156 CBS *contents) { in ext_sigalgs_parse_clienthello() argument
1161 if (contents == NULL) { in ext_sigalgs_parse_clienthello()
1166 if (!CBS_get_u16_length_prefixed(contents, &supported_signature_algorithms) || in ext_sigalgs_parse_clienthello()
1167 CBS_len(contents) != 0 || in ext_sigalgs_parse_clienthello()
1195 CBB contents; in ext_ocsp_add_clienthello() local
1197 !CBB_add_u16_length_prefixed(out, &contents) || in ext_ocsp_add_clienthello()
1198 !CBB_add_u8(&contents, TLSEXT_STATUSTYPE_ocsp) || in ext_ocsp_add_clienthello()
1199 !CBB_add_u16(&contents, 0 /* empty responder ID list */) || in ext_ocsp_add_clienthello()
1200 !CBB_add_u16(&contents, 0 /* empty request extensions */) || in ext_ocsp_add_clienthello()
1209 CBS *contents) { in ext_ocsp_parse_serverhello() argument
1210 if (contents == NULL) { in ext_ocsp_parse_serverhello()
1214 if (CBS_len(contents) != 0) { in ext_ocsp_parse_serverhello()
1223 CBS *contents) { in ext_ocsp_parse_clienthello() argument
1224 if (contents == NULL) { in ext_ocsp_parse_clienthello()
1229 if (!CBS_get_u8(contents, &status_type)) { in ext_ocsp_parse_clienthello()
1280 CBS *contents) { in ext_npn_parse_serverhello() argument
1281 if (contents == NULL) { in ext_npn_parse_serverhello()
1300 const uint8_t *const orig_contents = CBS_data(contents); in ext_npn_parse_serverhello()
1301 const size_t orig_len = CBS_len(contents); in ext_npn_parse_serverhello()
1303 while (CBS_len(contents) != 0) { in ext_npn_parse_serverhello()
1305 if (!CBS_get_u8_length_prefixed(contents, &proto) || in ext_npn_parse_serverhello()
1334 CBS *contents) { in ext_npn_parse_clienthello() argument
1335 if (contents != NULL && CBS_len(contents) != 0) { in ext_npn_parse_clienthello()
1339 if (contents == NULL || in ext_npn_parse_clienthello()
1371 CBB contents; in ext_npn_add_serverhello() local
1373 !CBB_add_u16_length_prefixed(out, &contents) || in ext_npn_add_serverhello()
1374 !CBB_add_bytes(&contents, npa, npa_len) || in ext_npn_add_serverhello()
1401 CBS *contents) { in ext_sct_parse_serverhello() argument
1402 if (contents == NULL) { in ext_sct_parse_serverhello()
1410 if (CBS_len(contents) == 0) { in ext_sct_parse_serverhello()
1417 !CBS_stow(contents, &ssl->session->tlsext_signed_cert_timestamp_list, in ext_sct_parse_serverhello()
1427 CBS *contents) { in ext_sct_parse_clienthello() argument
1428 return contents == NULL || CBS_len(contents) == 0; in ext_sct_parse_clienthello()
1438 CBB contents; in ext_sct_add_serverhello() local
1440 CBB_add_u16_length_prefixed(out, &contents) && in ext_sct_add_serverhello()
1441 CBB_add_bytes(&contents, ssl->ctx->signed_cert_timestamp_list, in ext_sct_add_serverhello()
1462 CBB contents, proto_list; in ext_alpn_add_clienthello() local
1464 !CBB_add_u16_length_prefixed(out, &contents) || in ext_alpn_add_clienthello()
1465 !CBB_add_u16_length_prefixed(&contents, &proto_list) || in ext_alpn_add_clienthello()
1476 CBS *contents) { in ext_alpn_parse_serverhello() argument
1477 if (contents == NULL) { in ext_alpn_parse_serverhello()
1494 if (!CBS_get_u16_length_prefixed(contents, &protocol_name_list) || in ext_alpn_parse_serverhello()
1495 CBS_len(contents) != 0 || in ext_alpn_parse_serverhello()
1513 CBS *contents) { in ext_alpn_parse_clienthello() argument
1514 if (contents == NULL) { in ext_alpn_parse_clienthello()
1527 if (!CBS_get_u16_length_prefixed(contents, &protocol_name_list) || in ext_alpn_parse_clienthello()
1528 CBS_len(contents) != 0 || in ext_alpn_parse_clienthello()
1568 CBB contents, proto_list, proto; in ext_alpn_add_serverhello() local
1570 !CBB_add_u16_length_prefixed(out, &contents) || in ext_alpn_add_serverhello()
1571 !CBB_add_u16_length_prefixed(&contents, &proto_list) || in ext_alpn_add_serverhello()
1606 CBS *contents) { in ext_channel_id_parse_serverhello() argument
1607 if (contents == NULL) { in ext_channel_id_parse_serverhello()
1614 if (CBS_len(contents) != 0) { in ext_channel_id_parse_serverhello()
1623 CBS *contents) { in ext_channel_id_parse_clienthello() argument
1624 if (contents == NULL || in ext_channel_id_parse_clienthello()
1630 if (CBS_len(contents) != 0) { in ext_channel_id_parse_clienthello()
1671 CBB contents, profile_ids; in ext_srtp_add_clienthello() local
1673 !CBB_add_u16_length_prefixed(out, &contents) || in ext_srtp_add_clienthello()
1674 !CBB_add_u16_length_prefixed(&contents, &profile_ids)) { in ext_srtp_add_clienthello()
1686 if (!CBB_add_u8(&contents, 0 /* empty use_mki value */) || in ext_srtp_add_clienthello()
1695 CBS *contents) { in ext_srtp_parse_serverhello() argument
1696 if (contents == NULL) { in ext_srtp_parse_serverhello()
1706 if (!CBS_get_u16_length_prefixed(contents, &profile_ids) || in ext_srtp_parse_serverhello()
1709 !CBS_get_u8_length_prefixed(contents, &srtp_mki) || in ext_srtp_parse_serverhello()
1710 CBS_len(contents) != 0) { in ext_srtp_parse_serverhello()
1743 CBS *contents) { in ext_srtp_parse_clienthello() argument
1744 if (contents == NULL) { in ext_srtp_parse_clienthello()
1749 if (!CBS_get_u16_length_prefixed(contents, &profile_ids) || in ext_srtp_parse_clienthello()
1751 !CBS_get_u8_length_prefixed(contents, &srtp_mki) || in ext_srtp_parse_clienthello()
1752 CBS_len(contents) != 0) { in ext_srtp_parse_clienthello()
1791 CBB contents, profile_ids; in ext_srtp_add_serverhello() local
1793 !CBB_add_u16_length_prefixed(out, &contents) || in ext_srtp_add_serverhello()
1794 !CBB_add_u16_length_prefixed(&contents, &profile_ids) || in ext_srtp_add_serverhello()
1796 !CBB_add_u8(&contents, 0 /* empty MKI */) || in ext_srtp_add_serverhello()
1831 CBB contents, formats; in ext_ec_point_add_extension() local
1833 !CBB_add_u16_length_prefixed(out, &contents) || in ext_ec_point_add_extension()
1834 !CBB_add_u8_length_prefixed(&contents, &formats) || in ext_ec_point_add_extension()
1852 CBS *contents) { in ext_ec_point_parse_serverhello() argument
1853 if (contents == NULL) { in ext_ec_point_parse_serverhello()
1858 if (!CBS_get_u8_length_prefixed(contents, &ec_point_format_list) || in ext_ec_point_parse_serverhello()
1859 CBS_len(contents) != 0) { in ext_ec_point_parse_serverhello()
1875 CBS *contents) { in ext_ec_point_parse_clienthello() argument
1876 return ext_ec_point_parse_serverhello(ssl, out_alert, contents); in ext_ec_point_parse_clienthello()
1907 CBB contents, curves_bytes; in ext_ec_curves_add_clienthello() local
1909 !CBB_add_u16_length_prefixed(out, &contents) || in ext_ec_curves_add_clienthello()
1910 !CBB_add_u16_length_prefixed(&contents, &curves_bytes)) { in ext_ec_curves_add_clienthello()
1929 CBS *contents) { in ext_ec_curves_parse_serverhello() argument
1935 CBS *contents) { in ext_ec_curves_parse_clienthello() argument
1936 if (contents == NULL) { in ext_ec_curves_parse_clienthello()
1941 if (!CBS_get_u16_length_prefixed(contents, &elliptic_curve_list) || in ext_ec_curves_parse_clienthello()
1944 CBS_len(contents) != 0) { in ext_ec_curves_parse_clienthello()