From 5149cc4990d447405be5378c19aae49310a51872 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 13 Jun 2024 17:01:45 +0200 Subject: [PATCH] BUILD: ssl: fix build with wolfSSL fix build with wolfSSL, broken since the reorg in src/ssl_clienthello.c --- include/haproxy/ssl_sock.h | 3 +++ src/ssl_clienthello.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/haproxy/ssl_sock.h b/include/haproxy/ssl_sock.h index 615f894e10..6f9d439726 100644 --- a/include/haproxy/ssl_sock.h +++ b/include/haproxy/ssl_sock.h @@ -112,6 +112,9 @@ int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *arg); #else /* ! HAVE_SSL_CLIENT_HELLO_CB */ int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *priv); #endif +#ifdef USE_OPENSSL_WOLFSSL +int ssl_sock_switchctx_wolfSSL_cbk(WOLFSSL* ssl, void* arg); +#endif int increment_sslconn(); void ssl_sock_load_cert_sni(struct ckch_inst *ckch_inst, struct bind_conf *bind_conf); diff --git a/src/ssl_clienthello.c b/src/ssl_clienthello.c index 4afa5df94c..23719558e9 100644 --- a/src/ssl_clienthello.c +++ b/src/ssl_clienthello.c @@ -545,7 +545,7 @@ int ssl_sock_switchctx_cbk(SSL *ssl, int *al, void *priv) * * Not activated for now since the PR is not merged. */ -static int ssl_sock_switchctx_wolfSSL_cbk(WOLFSSL* ssl, void* arg) +int ssl_sock_switchctx_wolfSSL_cbk(WOLFSSL* ssl, void* arg) { struct bind_conf *s = arg; int has_rsa_sig = 0, has_ecdsa_sig = 0;