diff --git a/configure.ac b/configure.ac index daa392fd1..6d0574e9f 100644 --- a/configure.ac +++ b/configure.ac @@ -1529,6 +1529,11 @@ AC_ARG_ENABLE([sslv3], [ ENABLED_SSLV3=no] ) +if test "x$ENABLED_HAPROXY" = "xyes" +then + ENABLED_SSLV3="yes" +fi + if test "$ENABLED_SSLV3" = "yes" then AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALLOW_SSLV3" diff --git a/src/ssl.c b/src/ssl.c index bbef847cf..4f2885140 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -31538,8 +31538,9 @@ WOLFSSL_EVP_PKEY* wolfSSL_d2i_PrivateKey_EVP(WOLFSSL_EVP_PKEY** out, /* stunnel compatibility functions*/ -#if defined(OPENSSL_ALL) || (defined(OPENSSL_EXTRA) && (defined(HAVE_STUNNEL) \ - || defined(WOLFSSL_NGINX) || defined(HAVE_LIGHTY))) +#if defined(OPENSSL_ALL) || (defined(OPENSSL_EXTRA) && (defined(HAVE_STUNNEL) || \ + defined(WOLFSSL_NGINX) || defined(HAVE_LIGHTY) || \ + defined(WOLFSSL_HAPROXY))) void wolfSSL_ERR_remove_thread_state(void* pid) { (void) pid; diff --git a/wolfssl/internal.h b/wolfssl/internal.h index 719802952..7f6720531 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -2525,7 +2525,9 @@ struct WOLFSSL_CTX { CallbackALPNSelect alpnSelect; void* alpnSelectArg; #endif -#if defined(OPENSSL_ALL) || (defined(OPENSSL_EXTRA) && (defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(HAVE_LIGHTY))) +#if defined(OPENSSL_ALL) || (defined(OPENSSL_EXTRA) && (defined(HAVE_STUNNEL) || \ + defined(WOLFSSL_NGINX) || defined(HAVE_LIGHTY) || \ + defined(WOLFSSL_HAPROXY))) CallbackSniRecv sniRecvCb; void* sniRecvCbArg; #endif