From ce417b2fb94989cb645b5af891be1ebbb3bd1556 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 26 Jun 2026 16:39:28 +0200 Subject: [PATCH] MINOR: ssl: export ssl_sock_init_srv() Export ssl_sock_init_srv() so it can be called at other places where we initialize servers --- include/haproxy/ssl_sock.h | 1 + src/cfgparse-ssl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/haproxy/ssl_sock.h b/include/haproxy/ssl_sock.h index c2575d667..66675636d 100644 --- a/include/haproxy/ssl_sock.h +++ b/include/haproxy/ssl_sock.h @@ -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); diff --git a/src/cfgparse-ssl.c b/src/cfgparse-ssl.c index a01d1eb9b..0c57d6b33 100644 --- a/src/cfgparse-ssl.c +++ b/src/cfgparse-ssl.c @@ -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);