From 838c4f2cba5e46477a47031232cd041d03c6d72a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 4 Jan 2013 23:17:35 +0100 Subject: [PATCH] fix compile errors on linux Signed-off-by: Felix Fietkau --- ustream-example.c | 1 + ustream-ssl.c | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ustream-example.c b/ustream-example.c index b3cbe76..ea22067 100644 --- a/ustream-example.c +++ b/ustream-example.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include diff --git a/ustream-ssl.c b/ustream-ssl.c index ce32eb5..afb01f3 100644 --- a/ustream-ssl.c +++ b/ustream-ssl.c @@ -182,12 +182,8 @@ static void ustream_ssl_stream_init(struct ustream_ssl *us) static void *_ustream_ssl_context_new(bool server) { -#ifdef CYASSL_OPENSSL_H_ - SSL_METHOD *m; -#else - const SSL_METHOD *m; -#endif SSL_CTX *c; + const void *m; ssl_init(); @@ -203,7 +199,7 @@ static void *_ustream_ssl_context_new(bool server) m = TLSv1_client_method(); #endif - c = SSL_CTX_new(m); + c = SSL_CTX_new((void *) m); if (!c) return NULL; -- 2.25.1