mirror of https://github.com/moparisthebest/curl
CyaSSL 2.0+ library initialization adjustment
This commit is contained in:
parent
0604b2fb90
commit
2d833852f6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue