Wget 2.0.0 does not build with wolfssl 5.0.0
Another fallout from recently added FreeBSD port of wget2 2.0.0, it does not build with wolfssl option (FreeBSD has wolfssl 5.0.0).
--- libwget_la-ssl_wolfssl.lo ---
ssl_wolfssl.c:877:7: warning: implicit declaration of function 'wolfSSL_UseALPN' is invalid in C99 [-Wimplicit-function-declaration]
if (wolfSSL_UseALPN(session, alpn, (int) len, WOLFSSL_ALPN_CONTINUE_ON_MISMATCH) == WOLFSSL_SUCCESS) {
^
ssl_wolfssl.c:877:49: error: use of undeclared identifier 'WOLFSSL_ALPN_CONTINUE_ON_MISMATCH'; did you mean 'WOLFSSL_SNI_CONTINUE_ON_MISMATCH'?
if (wolfSSL_UseALPN(session, alpn, (int) len, WOLFSSL_ALPN_CONTINUE_ON_MISMATCH) == WOLFSSL_SUCCESS) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WOLFSSL_SNI_CONTINUE_ON_MISMATCH
/usr/local/include/wolfssl/ssl.h:3361:5: note: 'WOLFSSL_SNI_CONTINUE_ON_MISMATCH' declared here
WOLFSSL_SNI_CONTINUE_ON_MISMATCH = 0x01,
^
ssl_wolfssl.c:933:7: warning: implicit declaration of function 'wolfSSL_ALPN_GetProtocol' is invalid in C99 [-Wimplicit-function-declaration]
if (wolfSSL_ALPN_GetProtocol(session, &protocol, &protocol_length) != WOLFSSL_SUCCESS)
^
2 warnings and 1 error generated.
*** [libwget_la-ssl_wolfssl.lo] Error code 1
Complete log: https://people.freebsd.org/~amdmi3/wget2-wolfssl.log