aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-11-25 17:23:36 +0100
committerYang Tse <yangsita@gmail.com>2011-11-25 17:23:36 +0100
commit2d833852f6606a1b6e1a88aeccebba04a3ab5773 (patch)
treee3ab94608e7d243445827923f8afd13f868a41e7
parent0604b2fb90cb91c047f0946ed5e235639f2100af (diff)
CyaSSL 2.0+ library initialization adjustment
-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;
}