From d84dab733a9d7e30737ab62a4911241089f029af Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 22 Dec 2016 21:13:18 +0100 Subject: [PATCH] MINOR: connection: add new prepare_srv()/destroy_srv() entries to xprt_ops These one will be used by the SSL layer to prepare and destroy a server-side SSL context. --- include/types/connection.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/types/connection.h b/include/types/connection.h index 904bef6a6..0d7fe27b7 100644 --- a/include/types/connection.h +++ b/include/types/connection.h @@ -39,6 +39,7 @@ /* referenced below */ struct connection; struct buffer; +struct server; struct pipe; /* For each direction, we have a CO_FL_{SOCK,DATA}__ENA flag, which @@ -222,6 +223,8 @@ struct xprt_ops { int (*init)(struct connection *conn); /* initialize the transport layer */ int (*prepare_bind_conf)(struct bind_conf *conf); /* prepare a whole bind_conf */ void (*destroy_bind_conf)(struct bind_conf *conf); /* destroy a whole bind_conf */ + int (*prepare_srv)(struct server *srv); /* prepare a server context */ + void (*destroy_srv)(struct server *srv); /* destroy a server context */ char name[8]; /* transport layer name, zero-terminated */ };