]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: connection: add a new destroy_bind_conf() entry to xprt_ops
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 16:30:20 +0000 (17:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 22:26:38 +0000 (23:26 +0100)
This one will be set by the transport layers which want to destroy
a bind_conf. It will typically be used by SSL to release certificates,
CAs and so on.

include/types/connection.h

index 2fbc30ee8067cd82045d8920f069f8f7c427662a..6da213841f0cd8b5296a05798d505170129a5370 100644 (file)
@@ -214,6 +214,7 @@ struct xprt_ops {
        void (*close)(struct connection *);         /* close the transport layer */
        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 */
        char name[8];                               /* transport layer name, zero-terminated */
 };