mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-27 02:01:17 -04:00
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:
parent
1cb254ad77
commit
ce417b2fb9
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue