]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: Useless BIO_METHOD initialization
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 13 May 2025 14:15:51 +0000 (16:15 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Tue, 20 May 2025 13:00:06 +0000 (15:00 +0200)
This code is there from QUIC implementation start. It was supposed to
initialize <ha_quic_meth> as a BIO_METHOD static object. But this
BIO_METHOD is not used at all!

Should be backported as far as 2.6 to help integrate the next patches to come.

src/quic_ssl.c

index 703dee1d83f36a4eb42395c475eb274b25aee39c..7e409e31bb0ce52f2f61fb1c6e3a8d745aece99f 100644 (file)
@@ -10,8 +10,6 @@
 #include <haproxy/ssl_sock.h>
 #include <haproxy/trace.h>
 
-static BIO_METHOD *ha_quic_meth;
-
 DECLARE_POOL(pool_head_quic_ssl_sock_ctx, "quic_ssl_sock_ctx", sizeof(struct ssl_sock_ctx));
 
 /* Set the encoded version of the transport parameter into the TLS
@@ -875,15 +873,3 @@ int qc_alloc_ssl_sock_ctx(struct quic_conn *qc)
        pool_free(pool_head_quic_ssl_sock_ctx, ctx);
        goto leave;
 }
-
-static void __quic_conn_init(void)
-{
-       ha_quic_meth = BIO_meth_new(0x666, "ha QUIC methods");
-}
-INITCALL0(STG_REGISTER, __quic_conn_init);
-
-static void __quic_conn_deinit(void)
-{
-       BIO_meth_free(ha_quic_meth);
-}
-REGISTER_POST_DEINIT(__quic_conn_deinit);