|
@ -1,6 +1,8 @@ |
|
|
|
|
|
diff --git a/src/tls.c b/src/tls.c
|
|
|
|
|
|
index 4562c73..f946946 100644
|
|
|
--- a/src/tls.c
|
|
|
--- a/src/tls.c
|
|
|
+++ b/src/tls.c
|
|
|
+++ b/src/tls.c
|
|
|
@@ -63,10 +63,12 @@ static inline int tls_setup(shout_tls_t
|
|
|
|
|
|
|
|
|
@@ -63,12 +63,16 @@ static inline int tls_setup(shout_tls_t *tls)
|
|
|
{ |
|
|
{ |
|
|
SSL_METHOD *meth; |
|
|
SSL_METHOD *meth; |
|
|
|
|
|
|
|
@ -9,7 +11,11 @@ |
|
|
SSL_load_error_strings(); |
|
|
SSL_load_error_strings(); |
|
|
SSLeay_add_all_algorithms(); |
|
|
SSLeay_add_all_algorithms(); |
|
|
SSLeay_add_ssl_algorithms(); |
|
|
SSLeay_add_ssl_algorithms(); |
|
|
+#endif
|
|
|
|
|
|
|
|
|
|
|
|
meth = TLSv1_client_method(); |
|
|
meth = TLSv1_client_method(); |
|
|
|
|
|
+#else
|
|
|
|
|
|
+ meth = TLS_client_method();
|
|
|
|
|
|
+#endif
|
|
|
if (!meth) |
|
|
if (!meth) |
|
|
|
|
|
goto error; |
|
|
|
|
|
|