aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cyassl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/cyassl.c b/lib/cyassl.c
index cda18a8cb..afd008da3 100644
--- a/lib/cyassl.c
+++ b/lib/cyassl.c
@@ -404,7 +404,12 @@ size_t Curl_cyassl_version(char *buffer, size_t size)
int Curl_cyassl_init(void)
{
+#if (LIBCYASSL_VERSION_HEX >= 0x02000000)
+ if(SSL_library_init() != SSL_SUCCESS)
+ return 0;
+#else
InitCyaSSL();
+#endif
return 1;
}