]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: add an ->init function to data layer
authorWilly Tarreau <wtarreau@exceliance.fr>
Fri, 31 Aug 2012 11:54:11 +0000 (13:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Sep 2012 18:47:34 +0000 (20:47 +0200)
commit15678efc45df458db0bf7a27dee5d4db4825ced3
treee9983dcdcc3388177d67eaa8e71381885a1f489d
parent64ee491309f4ae87c08b712f339ff8c2d04d1fd9
MEDIUM: connection: add an ->init function to data layer

SSL need to initialize the data layer before proceeding with data. At
the moment, this data layer is automatically initialized from itself,
which will not be possible once we extract connection from sessions
since we'll only create the data layer once the handshake is finished.

So let's have the application layer initialize the data layer before
using it.
include/proto/connection.h
include/types/connection.h
src/proto_tcp.c
src/session.c