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