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.

24 lines
625 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. #ifdef USE_OPEN_SSL
  7. if (!OPEN_SSL_LIB_INIT_DONE) {
  8. OPEN_SSL_LIB_INIT_DONE = true;
  9. /* ---------------------------------------------------------- *
  10. * These function calls initialize openssl for correct work. *
  11. * ---------------------------------------------------------- */
  12. OpenSSL_add_all_algorithms();
  13. ERR_load_BIO_strings();
  14. ERR_load_crypto_strings();a
  15. SSL_load_error_strings();
  16. };
  17. #endif
  18. };