version 1.42, 2013/08/06 08:37:37
|
version 1.43, 2014/03/10 19:19:46
|
|
|
# include <openssl/err.h> | # include <openssl/err.h> |
# include <openssl/ssl.h> | # include <openssl/ssl.h> |
# include <openssl/rand.h> | # include <openssl/rand.h> |
|
|
|
//Include the applink.c to stop crashes as per OpenSSL FAQ |
|
//http://www.openssl.org/support/faq.html#PROG |
|
# ifdef PEGASUS_OS_TYPE_WINDOWS |
|
# include<openssl/applink.c> |
|
# endif |
|
|
#else | #else |
# define SSL_CTX void | # define SSL_CTX void |
#endif | #endif |
|
|
if (_instanceCount == 0) | if (_instanceCount == 0) |
{ | { |
_initializeCallbacks(); | _initializeCallbacks(); |
SSL_load_error_strings(); |
|
|
//important as per following site for |
|
//http://www.openssl.org/support/faq.html#PROG |
|
CRYPTO_malloc_init(); |
SSL_library_init(); | SSL_library_init(); |
|
SSL_load_error_strings(); |
} | } |
| |
_instanceCount++; | _instanceCount++; |