From: Frédéric Lécaille Date: Thu, 23 Nov 2023 14:50:18 +0000 (+0100) Subject: CLEANUP: quic: Remove dead definitions/declarations X-Git-Tag: v2.9-dev12~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21615d437617d306c4c8c4a2fd617c725de3ed31;p=thirdparty%2Fhaproxy.git CLEANUP: quic: Remove dead definitions/declarations Remove useless definitions and declarations. --- diff --git a/include/haproxy/quic_conn.h b/include/haproxy/quic_conn.h index c6192fe225..95f871b97d 100644 --- a/include/haproxy/quic_conn.h +++ b/include/haproxy/quic_conn.h @@ -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 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 header form is long, 0 if not. */ static inline int qc_pkt_long(const struct quic_rx_packet *pkt) { diff --git a/src/quic_conn.c b/src/quic_conn.c index 138b75c081..d729297b0f 100644 --- a/src/quic_conn.c +++ b/src/quic_conn.c @@ -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 QUIC connection: * MUST be called after having received the remote transport parameters which