Fix leak for openssl > 3.0 and fix all openssl deprecations #1791
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Found by: michaelortmann
Patch by: michaelortmann
Fixes:
One-line summary:
Fix leak for openssl > 3.0 and fix all openssl deprecations
Additional description (if needed):
Fix leak for openssl > 3.0
The leak is happening in
ssl_getuid()
which is called only indcc_telnet_id()
for telnet over ssl whenssl-cert-auth
is set to 2. This PR fixes the leak for eggdrop using openssl >= 3.0.Fix openssl 1.1 deprecation
SSLeay_version()
->OpenSSL_version()
Fix openssl 1.1 deprecation
ERR_free_strings()
Fix openssl 3.0 deprecation
SSL_get_peer_certificate()
Fix openssl 1.1 deprecation
X509_get_notBefore()
andX509_get_notAfter()
and makessl_printtime()
parameterconst
Test cases demonstrating functionality (if applicable):
Fixes the following errors when openssl 3.4.1 is compiled with
no-deprecated
:1.