]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: Remove dead definitions/declarations
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 23 Nov 2023 14:50:18 +0000 (15:50 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 28 Nov 2023 14:37:22 +0000 (15:37 +0100)
Remove useless definitions and declarations.

include/haproxy/quic_conn.h
src/quic_conn.c

index c6192fe225b1d3ff88c81c444358267919decd2a..95f871b97df7b1165aca0317f26f24e4a754e7e1 100644 (file)
@@ -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)
 {
index 138b75c0819c750c8b5bdaa0b809923e3cc6f6f4..d729297b0fada7d3f086c5322c2795469b597e6c 100644 (file)
@@ -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