wolfSSL's OpenSSL compat layer declares wolfSSL_get_SSL_CTX() (aka
SSL_get_SSL_CTX()) taking a non-const WOLFSSL*, unlike OpenSSL's
const-correct SSL_get_SSL_CTX(const SSL *ssl). Calling it from
ssl_sock_infocbk(), which only has a const SSL *, fails the build:
src/ssl_sock.c:1772:60: error: passing 'const SSL *' (aka 'const
struct WOLFSSL *') to parameter of type 'WOLFSSL *' (aka 'struct
WOLFSSL *') discards qualifiers
[-Werror,-Wincompatible-pointer-types-discards-qualifiers]
Beyond the build failure, the clamp itself doesn't appear to behave
correctly against wolfSSL's TLS1.3 session/ticket handling, so skip
the whole thing on wolfSSL builds instead of only working around the
compile error.
Must be backported in every stable branches along with
9f1d590
("BUG/MEDIUM: ssl: enforce tune.ssl.lifetime across TLS1.3 session
renewals")
}
}
-#ifdef TLS1_3_VERSION
+#if defined(TLS1_3_VERSION) && !defined(USE_OPENSSL_WOLFSSL)
/* Reduce TLS1.3 session timeout so it doesn't reset at each new
* resumed connection */