};
-__attribute__((constructor))
static void __raw_sock_init(void)
{
xprt_register(XPRT_RAW, &raw_sock);
}
+INITCALL0(STG_REGISTER, __raw_sock_init);
+
/*
* Local variables:
* c-indent-level: 8
pool_free(ssl_sock_client_sni_pool, ptr);
}
-__attribute__((constructor))
static void __ssl_sock_init(void)
{
#if (!defined(OPENSSL_NO_COMP) && !defined(SSL_OP_NO_COMPRESSION))
*/
hap_register_post_deinit(ssl_sock_unregister_msg_callbacks);
}
+INITCALL0(STG_REGISTER, __ssl_sock_init);
/* Compute and register the version string */
static void ssl_register_build_options()
}
#endif
-__attribute__((destructor))
static void __ssl_sock_deinit(void)
{
#if (defined SSL_CTRL_SET_TLSEXT_HOSTNAME && !defined SSL_NO_GENERATE_CERTIFICATES)
#endif
BIO_meth_free(ha_meth);
}
+REGISTER_POST_DEINIT(__ssl_sock_deinit);
/*
.name = "HS",
};
-__attribute__((constructor))
static void __xprt_handshake_init(void)
{
xprt_register(XPRT_HANDSHAKE, &xprt_handshake);
}
+
+INITCALL0(STG_REGISTER, __xprt_handshake_init);
.name = "QUIC",
};
-__attribute__((constructor))
static void __quic_conn_init(void)
{
ha_quic_meth = BIO_meth_new(0x666, "ha QUIC methods");
xprt_register(XPRT_QUIC, &ssl_quic);
}
+INITCALL0(STG_REGISTER, __quic_conn_init);
-__attribute__((destructor))
static void __quic_conn_deinit(void)
{
BIO_meth_free(ha_quic_meth);
}
+REGISTER_POST_DEINIT(__quic_conn_deinit);
/* Read all the QUIC packets found in <buf> from QUIC connection with <owner>
* as owner calling <func> function.