Skip to content

Commit 5ec2375

Browse files
committed
CLEANUP: quic: Useless BIO_METHOD initialization
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.
1 parent e803385 commit 5ec2375

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/quic_ssl.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#include <haproxy/ssl_sock.h>
1111
#include <haproxy/trace.h>
1212

13-
static BIO_METHOD *ha_quic_meth;
14-
1513
DECLARE_POOL(pool_head_quic_ssl_sock_ctx, "quic_ssl_sock_ctx", sizeof(struct ssl_sock_ctx));
1614

1715
/* 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)
875873
pool_free(pool_head_quic_ssl_sock_ctx, ctx);
876874
goto leave;
877875
}
878-
879-
static void __quic_conn_init(void)
880-
{
881-
ha_quic_meth = BIO_meth_new(0x666, "ha QUIC methods");
882-
}
883-
INITCALL0(STG_REGISTER, __quic_conn_init);
884-
885-
static void __quic_conn_deinit(void)
886-
{
887-
BIO_meth_free(ha_quic_meth);
888-
}
889-
REGISTER_POST_DEINIT(__quic_conn_deinit);

0 commit comments

Comments
 (0)