From 2c342ae57c5bd9fb99f69a4dd06a5a6e49eac7de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 10 Dec 2020 11:30:02 +0100 Subject: [PATCH] ustream-openssl: fix wolfSSL includes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes following compilation errors: ustream-io-wolfssl.c:74:2: error: implicit declaration of function 'wolfSSL_SetIORecv' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ustream-io-wolfssl.c:75:2: error: implicit declaration of function 'wolfSSL_SetIOSend' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ustream-io-wolfssl.c:79:2: error: implicit declaration of function 'wolfSSL_SetIOReadCtx' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ustream-io-wolfssl.c:80:2: error: implicit declaration of function 'wolfSSL_SetIOWriteCtx' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Signed-off-by: Petr Å tetiar --- ustream-openssl.c | 3 +++ ustream-openssl.h | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ustream-openssl.c b/ustream-openssl.c index f8e848d..dec2b9f 100644 --- a/ustream-openssl.c +++ b/ustream-openssl.c @@ -20,7 +20,10 @@ #include #include "ustream-ssl.h" #include "ustream-internal.h" + +#if !defined(HAVE_WOLFSSL) #include +#endif /* Ciphersuite preference: * - for server, no weak ciphers are used if you use an ECDSA key. diff --git a/ustream-openssl.h b/ustream-openssl.h index 0a6ca91..9663d21 100644 --- a/ustream-openssl.h +++ b/ustream-openssl.h @@ -21,10 +21,12 @@ #if defined(HAVE_WOLFSSL) #include -#endif - +#include +#else #include #include +#endif + #include void __ustream_ssl_session_free(void *ssl); -- 2.30.2