"HAVE_TCP_MD5SIG" feature is now registered if TCP MD5 signature is
supported. This will help the feature detection in the reg-test script
dedicated to this feature.
varnishtest "Test the support for tcp-md5sig option (linux only)"
+feature cmd "$HAPROXY_PROGRAM -cc 'feature(HAVE_TCP_MD5SIG)'"
feature ignore_unknown_macro
-feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(3.3-dev1)'"
-
-#EXCLUDE_TARGETS=solaris,freebsd,freebsd-glibc,dragonfly,openbsd,netbsd,cygwin,haiku,aix51,aix52,aix72-gcc,osx,generic,custom
-
haproxy h1 -conf {
defaults
#endif /* TCP_INFO */
+static void __proto_tcp_init(void)
+{
+#if defined(__linux__) && !defined(TCP_MD5SIG)
+ hap_register_feature("HAVE_TCP_MD5SIG");
+#endif
+}
+INITCALL0(STG_REGISTER, __proto_tcp_init);
+
/*
* Local variables:
* c-indent-level: 8