]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: fix build with wolfSSL
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Jun 2024 15:01:45 +0000 (17:01 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Jun 2024 15:01:45 +0000 (17:01 +0200)
fix build with wolfSSL, broken since the reorg in src/ssl_clienthello.c

include/haproxy/ssl_sock.h
src/ssl_clienthello.c

index 615f894e10a8228bfb6f8e0a1a001795e57dfa3a..6f9d439726a7a7288aed25a814d8f8f3a8f40c5e 100644 (file)
@@ -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);
index 4afa5df94cd49c26c4a392422e8faea4bea2f06e..23719558e94ff6e62f406373aefc1df8c8cc06e8 100644 (file)
@@ -545,7 +545,7 @@ sni_lookup:
  *
  * 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;