Lines Matching refs:thispkt
1568 WPACKET *thispkt; in tls_initialise_write_packets_default() local
1573 thispkt = &pkt[j]; in tls_initialise_write_packets_default()
1586 if (!WPACKET_init_static_len(thispkt, TLS_BUFFER_get_buf(wb), in tls_initialise_write_packets_default()
1592 if (!WPACKET_allocate_bytes(thispkt, align, NULL)) { in tls_initialise_write_packets_default()
1602 WPACKET *thispkt, in tls_prepare_record_header_default() argument
1615 if (!WPACKET_put_bytes_u8(thispkt, rectype) in tls_prepare_record_header_default()
1616 || !WPACKET_put_bytes_u16(thispkt, templ->version) in tls_prepare_record_header_default()
1617 || !WPACKET_start_sub_packet_u16(thispkt) in tls_prepare_record_header_default()
1619 && !WPACKET_allocate_bytes(thispkt, rl->eivlen, NULL)) in tls_prepare_record_header_default()
1621 && !WPACKET_reserve_bytes(thispkt, maxcomplen, in tls_prepare_record_header_default()
1632 WPACKET *thispkt, in tls_prepare_for_encryption_default() argument
1647 if (!WPACKET_allocate_bytes(thispkt, mac_size, &mac) in tls_prepare_for_encryption_default()
1660 if (!WPACKET_reserve_bytes(thispkt, SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD in tls_prepare_for_encryption_default()
1666 || !WPACKET_get_length(thispkt, &len)) { in tls_prepare_for_encryption_default()
1672 recordstart = WPACKET_get_curr(thispkt) - len; in tls_prepare_for_encryption_default()
1683 WPACKET *thispkt, in tls_post_encryption_processing_default() argument
1691 if (!WPACKET_get_length(thispkt, &origlen) in tls_post_encryption_processing_default()
1698 && !WPACKET_allocate_bytes(thispkt, in tls_post_encryption_processing_default()
1707 if (!WPACKET_allocate_bytes(thispkt, mac_size, &mac) in tls_post_encryption_processing_default()
1716 if (!WPACKET_get_length(thispkt, &len) in tls_post_encryption_processing_default()
1717 || !WPACKET_close(thispkt)) { in tls_post_encryption_processing_default()
1725 recordstart = WPACKET_get_curr(thispkt) - len - headerlen; in tls_post_encryption_processing_default()
1737 if (!WPACKET_finish(thispkt)) { in tls_post_encryption_processing_default()
1753 WPACKET *thispkt; in tls_write_records_default() local
1787 thispkt = &pkt[j]; in tls_write_records_default()
1803 if (!rl->funcs->prepare_record_header(rl, thispkt, thistempl, rectype, in tls_write_records_default()
1823 || !WPACKET_allocate_bytes(thispkt, thiswr->length, NULL)) { in tls_write_records_default()
1828 if (!WPACKET_memcpy(thispkt, thiswr->input, thiswr->length)) { in tls_write_records_default()
1836 && !rl->funcs->add_record_padding(rl, thistempl, thispkt, in tls_write_records_default()
1842 if (!rl->funcs->prepare_for_encryption(rl, mac_size, thispkt, thiswr)) { in tls_write_records_default()
1865 thispkt = &pkt[j]; in tls_write_records_default()
1870 thispkt, thiswr)) { in tls_write_records_default()