Lines Matching refs:hrrpkt
731 WPACKET hrrpkt; in tls_parse_ctos_cookie() local
867 if (!WPACKET_init_static_len(&hrrpkt, hrr, sizeof(hrr), 0)) { in tls_parse_ctos_cookie()
871 if (!WPACKET_put_bytes_u8(&hrrpkt, SSL3_MT_SERVER_HELLO) in tls_parse_ctos_cookie()
872 || !WPACKET_start_sub_packet_u24(&hrrpkt) in tls_parse_ctos_cookie()
873 || !WPACKET_put_bytes_u16(&hrrpkt, TLS1_2_VERSION) in tls_parse_ctos_cookie()
874 || !WPACKET_memcpy(&hrrpkt, hrrrandom, SSL3_RANDOM_SIZE) in tls_parse_ctos_cookie()
875 || !WPACKET_sub_memcpy_u8(&hrrpkt, s->tmp_session_id, in tls_parse_ctos_cookie()
877 || !ssl->method->put_cipher_by_char(s->s3.tmp.new_cipher, &hrrpkt, in tls_parse_ctos_cookie()
879 || !WPACKET_put_bytes_u8(&hrrpkt, 0) in tls_parse_ctos_cookie()
880 || !WPACKET_start_sub_packet_u16(&hrrpkt)) { in tls_parse_ctos_cookie()
881 WPACKET_cleanup(&hrrpkt); in tls_parse_ctos_cookie()
885 if (!WPACKET_put_bytes_u16(&hrrpkt, TLSEXT_TYPE_supported_versions) in tls_parse_ctos_cookie()
886 || !WPACKET_start_sub_packet_u16(&hrrpkt) in tls_parse_ctos_cookie()
887 || !WPACKET_put_bytes_u16(&hrrpkt, s->version) in tls_parse_ctos_cookie()
888 || !WPACKET_close(&hrrpkt)) { in tls_parse_ctos_cookie()
889 WPACKET_cleanup(&hrrpkt); in tls_parse_ctos_cookie()
894 if (!WPACKET_put_bytes_u16(&hrrpkt, TLSEXT_TYPE_key_share) in tls_parse_ctos_cookie()
895 || !WPACKET_start_sub_packet_u16(&hrrpkt) in tls_parse_ctos_cookie()
896 || !WPACKET_put_bytes_u16(&hrrpkt, s->s3.group_id) in tls_parse_ctos_cookie()
897 || !WPACKET_close(&hrrpkt)) { in tls_parse_ctos_cookie()
898 WPACKET_cleanup(&hrrpkt); in tls_parse_ctos_cookie()
903 if (!WPACKET_put_bytes_u16(&hrrpkt, TLSEXT_TYPE_cookie) in tls_parse_ctos_cookie()
904 || !WPACKET_start_sub_packet_u16(&hrrpkt) in tls_parse_ctos_cookie()
905 || !WPACKET_sub_memcpy_u16(&hrrpkt, data, rawlen) in tls_parse_ctos_cookie()
906 || !WPACKET_close(&hrrpkt) /* cookie extension */ in tls_parse_ctos_cookie()
907 || !WPACKET_close(&hrrpkt) /* extension block */ in tls_parse_ctos_cookie()
908 || !WPACKET_close(&hrrpkt) /* message */ in tls_parse_ctos_cookie()
909 || !WPACKET_get_total_written(&hrrpkt, &hrrlen) in tls_parse_ctos_cookie()
910 || !WPACKET_finish(&hrrpkt)) { in tls_parse_ctos_cookie()
911 WPACKET_cleanup(&hrrpkt); in tls_parse_ctos_cookie()