mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
CLEANUP: quic: Remove dead definitions/declarations
Remove useless definitions and declarations.
This commit is contained in:
parent
af733ef6e4
commit
21615d4376
@ -498,25 +498,6 @@ static inline size_t quic_may_send_bytes(struct quic_conn *qc)
|
||||
return 3 * qc->bytes.rx - qc->bytes.prep;
|
||||
}
|
||||
|
||||
/* CRYPTO data buffer handling functions. */
|
||||
static inline unsigned char *c_buf_getpos(struct quic_enc_level *qel, uint64_t offset)
|
||||
{
|
||||
int idx;
|
||||
unsigned char *data;
|
||||
|
||||
idx = offset >> QUIC_CRYPTO_BUF_SHIFT;
|
||||
data = qel->tx.crypto.bufs[idx]->data;
|
||||
return data + (offset & QUIC_CRYPTO_BUF_MASK);
|
||||
}
|
||||
|
||||
/* Returns 1 if the CRYPTO buffer at <qel> encryption level has been
|
||||
* consumed (sent to the peer), 0 if not.
|
||||
*/
|
||||
static inline int c_buf_consumed(struct quic_enc_level *qel)
|
||||
{
|
||||
return qel->tx.crypto.offset == qel->tx.crypto.sz;
|
||||
}
|
||||
|
||||
/* Return 1 if <pkt> header form is long, 0 if not. */
|
||||
static inline int qc_pkt_long(const struct quic_rx_packet *pkt)
|
||||
{
|
||||
|
||||
@ -299,9 +299,6 @@ void qc_check_close_on_released_mux(struct quic_conn *qc)
|
||||
TRACE_LEAVE(QUIC_EV_CONN_CLOSE, qc);
|
||||
}
|
||||
|
||||
int ssl_sock_get_alpn(const struct connection *conn, void *xprt_ctx,
|
||||
const char **str, int *len);
|
||||
|
||||
/* Finalize <qc> QUIC connection:
|
||||
|
||||
* MUST be called after having received the remote transport parameters which
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user