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.

39 lines
1.3 KiB

  1. --- a/hcxdumptool.c
  2. +++ b/hcxdumptool.c
  3. @@ -571,10 +571,6 @@ if(rebootflag == true)
  4. }
  5. }
  6. -EVP_cleanup();
  7. -CRYPTO_cleanup_all_ex_data();
  8. -ERR_free_strings();
  9. -
  10. if(errorcount != 0) exit(EXIT_FAILURE);
  11. if(totflag == true) exit(USER_EXIT_TOT);
  12. exit(EXIT_SUCCESS);
  13. @@ -7777,8 +7773,6 @@ return true;
  14. /*===========================================================================*/
  15. static inline bool tlsinit()
  16. {
  17. -SSL_load_error_strings();
  18. -OpenSSL_add_ssl_algorithms();
  19. if((tlsctx = SSL_CTX_new(SSLv23_server_method())) == NULL)
  20. {
  21. fprintf(stderr, "OpenSSl can't create SSL context\n");
  22. @@ -7797,7 +7791,6 @@ if(SSL_CTX_use_PrivateKey_file(tlsctx, e
  23. if((eaptlsctx = (eaptlsctx_t*)malloc(EAPTLSCTX_SIZE)) == NULL) return false;
  24. memset(eaptlsctx, 0, EAPTLSCTX_SIZE);
  25. SSL_CTX_set_session_cache_mode(tlsctx, SSL_SESS_CACHE_OFF);
  26. -SSL_CTX_set_ecdh_auto(tlsctx, 1);
  27. SSL_CTX_set_verify(tlsctx, (SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE), eap_tls_clientverify_cb);
  28. #if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
  29. SSL_CTX_set_min_proto_version(tlsctx, TLS1_VERSION);
  30. @@ -7872,8 +7865,6 @@ if(gpiostatusled > 0)
  31. }
  32. -ERR_load_crypto_strings();
  33. -OpenSSL_add_all_algorithms();
  34. opensslversion = OpenSSL_version_num();
  35. opensslversionmajor = (opensslversion & 0x10000000L) >> 28;
  36. opensslversionminor = (opensslversion & 0x01100000L) >> 20;