The sz and offset members of the tx crypto substructure of
quic_enc_level are written but never read: the buffered CRYPTO data are
located with the bufs array and the sz member of each quic_crypto_buf.
Let's remove them.
struct quic_crypto_buf **bufs;
/* The number of element in use in the previous array. */
size_t nb_buf;
- /* The total size of the CRYPTO data stored in the CRYPTO buffers. */
- size_t sz;
- /* The offset of the CRYPT0 data stream. */
- uint64_t offset;
} crypto;
} tx;
if (to_copy) {
memcpy(pos, data, to_copy);
/* Increment the total size of this CRYPTO buffers by <to_copy>. */
- qel->tx.crypto.sz += to_copy;
(*qcb)->sz += to_copy;
len -= to_copy;
data += to_copy;
qel->tx.crypto.bufs[0]->sz = 0;
qel->tx.crypto.nb_buf = 1;
- qel->tx.crypto.sz = 0;
- qel->tx.crypto.offset = 0;
/* No CRYPTO data for early data TLS encryption level */
if (level == ssl_encryption_early_data)
qel->cstream = NULL;