]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server: export server_parse_sni_expr() function
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Mar 2022 14:44:42 +0000 (15:44 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Mar 2022 14:55:30 +0000 (15:55 +0100)
Export the server_parse_sni_expr() function in order to create a SNI
expression in a server which was not parsed from the configuration.

include/haproxy/server.h
src/server.c

index 69507c7c783f3e2ae44d9ec5be201f46b3ef38ad..2572b72305d8a47ddbd15a88b541150ae0208465 100644 (file)
@@ -46,6 +46,7 @@ int srv_lastsession(const struct server *s);
 int srv_getinter(const struct check *check);
 int parse_server(const char *file, int linenum, char **args, struct proxy *curproxy, const struct proxy *defproxy, int parse_flags);
 int srv_update_addr(struct server *s, void *ip, int ip_sin_family, const char *updater);
+int server_parse_sni_expr(struct server *newsrv, struct proxy *px, char **err);
 const char *srv_update_addr_port(struct server *s, const char *addr, const char *port, char *updater);
 const char *srv_update_check_addr_port(struct server *s, const char *addr, const char *port);
 const char *srv_update_agent_addr_port(struct server *s, const char *addr, const char *port);
index 83295b6567652ed5a4a17e6fb2978cefda630e05..d3f86b058c15daea26152ebe5ba630f678151089 100644 (file)
@@ -1955,7 +1955,7 @@ static struct sample_expr *srv_sni_sample_parse_expr(struct server *srv, struct
        return sample_parse_expr((char **)args, &idx, file, linenum, err, &px->conf.args, NULL);
 }
 
-static int server_parse_sni_expr(struct server *newsrv, struct proxy *px, char **err)
+int server_parse_sni_expr(struct server *newsrv, struct proxy *px, char **err)
 {
        struct sample_expr *expr;