]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: export ssl_sock_init_srv()
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Jun 2026 14:39:28 +0000 (16:39 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Jun 2026 15:25:50 +0000 (17:25 +0200)
Export ssl_sock_init_srv() so it can be called at other places where we
initialize servers

include/haproxy/ssl_sock.h
src/cfgparse-ssl.c

index c2575d667ba3e9ba36914d298d6ad3cd7eebe0d0..66675636d7868509368cae0157e4d0686b10e1e5 100644 (file)
@@ -68,6 +68,7 @@ int ssl_sock_prep_srv_ctx_and_inst(const struct server *srv, SSL_CTX *ctx,
 int ssl_sock_prepare_all_ctx(struct bind_conf *bind_conf);
 int ssl_sock_prepare_bind_conf(struct bind_conf *bind_conf);
 void ssl_sock_destroy_bind_conf(struct bind_conf *bind_conf);
+int ssl_sock_init_srv(struct server *srv);
 int ssl_sock_prepare_srv_ctx(struct server *srv);
 void ssl_sock_free_srv_ctx(struct server *srv);
 void ssl_sock_free_all_ctx(struct bind_conf *bind_conf);
index a01d1eb9bb7f7d3dd53964cc2254a0a3538add96..0c57d6b3303d89e877394b144471ba6cf93122cb 100644 (file)
@@ -1799,7 +1799,7 @@ static int srv_parse_renegotiate(char **args, int *cur_arg, struct proxy *px,
 }
 
 /* common function to init ssl_ctx */
-static int ssl_sock_init_srv(struct server *s)
+int ssl_sock_init_srv(struct server *s)
 {
        if (global_ssl.connect_default_ciphers && !s->ssl_ctx.ciphers)
                s->ssl_ctx.ciphers = strdup(global_ssl.connect_default_ciphers);