MINOR: ssl: export ssl_sock_init_srv()

Export ssl_sock_init_srv() so it can be called at other places where we
initialize servers
This commit is contained in:
William Lallemand 2026-06-26 16:39:28 +02:00
parent 1cb254ad77
commit ce417b2fb9
2 changed files with 2 additions and 1 deletions

View 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);

View 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);