CLEANUP: connection: remove all direct references to raw_sock and ssl_sock
Now we exclusively use xprt_get(XPRT_RAW) instead of &raw_sock or
xprt_get(XPRT_SSL) for &ssl_sock. This removes a bunch of #ifdef and
include spread over a number of location including backend, cfgparse,
checks, cli, hlua, log, server and session.
diff --git a/src/backend.c b/src/backend.c
index e0e53ff..658212d 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -51,7 +51,6 @@
#include <proto/sample.h>
#include <proto/server.h>
#include <proto/stream.h>
-#include <proto/raw_sock.h>
#include <proto/stream_interface.h>
#include <proto/task.h>
@@ -1150,7 +1149,7 @@
}
else if (obj_type(s->target) == OBJ_TYPE_PROXY) {
/* proxies exclusively run on raw_sock right now */
- conn_prepare(srv_conn, protocol_by_family(srv_conn->addr.to.ss_family), &raw_sock);
+ conn_prepare(srv_conn, protocol_by_family(srv_conn->addr.to.ss_family), xprt_get(XPRT_RAW));
if (!objt_conn(s->si[1].end) || !objt_conn(s->si[1].end)->ctrl)
return SF_ERR_INTERNAL;
}