The count and flags members of struct quic_tls_kp are only initialized by
quic_tls_kp_init() and read nowhere: the key phase state is kept in the pn
member of the TLS secrets and in the flags member of the TLS context.
Let's remove them.
size_t ivlen;
unsigned char *key;
size_t keylen;
- uint64_t count;
- unsigned char flags;
};
/* Key phase bit of the packets we send */
*/
static inline int quic_tls_kp_init(struct quic_tls_kp *kp)
{
- kp->count = 0;
- kp->flags = 0;
kp->secret = pool_alloc(pool_head_quic_tls_secret);
kp->secretlen = QUIC_TLS_SECRET_LEN;
kp->iv = pool_alloc(pool_head_quic_tls_iv);