wolfssl: adjust to new API in v4.2.0
[oweals/openwrt-ustream-ssl.git] / ustream-openssl.c
index c8306184d2dff71a99aaa85ed46577c123158890..14694733fb2dcf4c89b2052fabd651a9cf8d8cec 100644 (file)
@@ -110,8 +110,12 @@ __ustream_ssl_context_new(bool server)
                SSL_library_init();
                _init = true;
        }
-# define TLS_server_method SSLv23_server_method
-# define TLS_client_method SSLv23_client_method
+# ifndef TLS_server_method
+#  define TLS_server_method SSLv23_server_method
+# endif
+# ifndef TLS_client_method
+#  define TLS_client_method SSLv23_client_method
+# endif
 #endif
 
        if (server) {