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

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "basicSSL.h"
  2. #ifdef USE_OPEN_SSL
  3. static bool OPEN_SSL_LIB_INIT_DONE = false;
  4. #endif
  5. static void sslLibInit(void)
  6. {
  7. #ifdef USE_OPEN_SSL
  8. if (! OPEN_SSL_LIB_INIT_DONE)
  9. {
  10. OPEN_SSL_LIB_INIT_DONE = true;
  11. /* ---------------------------------------------------------- *
  12. * These function calls initialize openssl for correct work. *
  13. * ---------------------------------------------------------- */
  14. OpenSSL_add_all_algorithms();
  15. ERR_load_BIO_strings();
  16. ERR_load_crypto_strings();
  17. a SSL_load_error_strings();
  18. };
  19. #endif
  20. }