You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
542 B
22 lines
542 B
#include "basicSSL.h"
|
|
|
|
#ifdef USE_OPEN_SSL
|
|
static bool OPEN_SSL_LIB_INIT_DONE = false;
|
|
#endif
|
|
|
|
static void sslLibInit(void)
|
|
{
|
|
#ifdef USE_OPEN_SSL
|
|
if (! OPEN_SSL_LIB_INIT_DONE)
|
|
{
|
|
OPEN_SSL_LIB_INIT_DONE = true;
|
|
/* ---------------------------------------------------------- *
|
|
* These function calls initialize openssl for correct work. *
|
|
* ---------------------------------------------------------- */
|
|
OpenSSL_add_all_algorithms();
|
|
ERR_load_BIO_strings();
|
|
ERR_load_crypto_strings();
|
|
a SSL_load_error_strings();
|
|
};
|
|
#endif
|
|
}
|