KSSL: fixed detection of correct 'SSL_get_peer_certificate' method. This resolves incompatibility with openSSL 3.0. #175

Merged
MicheleC merged 1 commits from fix/openssl3 into master 2 years ago
Owner

In openSSL 3.0, SSL_get_peer_certificate is an alias to SSL_get1_peer_certificate and the symbol is not exported in libssl.so.3.
This PR will first try to find SSL_get1_peer_certificate (available in openSSL 3) and if not found, it will try to find the original SSL_get_peer_certificate (available in openSSL 1.1).

Konqueror can successfully open https://www.google.com with this PR.

In openSSL 3.0, ```SSL_get_peer_certificate``` is an alias to ```SSL_get1_peer_certificate``` and the symbol is not exported in libssl.so.3. This PR will first try to find ```SSL_get1_peer_certificate``` (available in openSSL 3) and if not found, it will try to find the original ```SSL_get_peer_certificate``` (available in openSSL 1.1). Konqueror can successfully open https://www.google.com with this PR.
MicheleC added this to the R14.0.13 release milestone 2 years ago
MicheleC added 1 commit 2 years ago
MicheleC requested review from SlavekB 2 years ago
SlavekB approved these changes 2 years ago
SlavekB left a comment
Owner

Great, it looks good.

Great, it looks good.
MicheleC merged commit 682b8acae4 into master 2 years ago
MicheleC deleted branch fix/openssl3 2 years ago

Reviewers

SlavekB approved these changes 2 years ago
The pull request has been merged as 682b8acae4.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdelibs#175
Loading…
There is no content yet.