Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openssl: support OpenSSL 3.0 and above (#1349)
## Summary The only ABI change between version 1.1.1 and 3.0 for our usage is `SSL_get_peer_certificate` being splitted into `SSL_get1_peer_certificate` (which is compatible with the prior symbol) and `SSL_get0_peer_certificate` . This PR modifies `SSL_get_peer_certificate` in the wrapper to use the new symbol if available. No changes in other programs are required. ## Details * `SSL_get_peer_certificate` will now select either `SSL_get1_peer_certificate` or `SSL_get_peer_certificate` depending on which symbols are available. * DLL names for OpenSSL 3.x has been added for macOS, Windows and Linux. * The symbols used for certificate verification are no longer unconditionally hidden on Windows. They were hidden previously as Nim ships old OpenSSL 1.0 which did not have these symbols. Fixes #1160
- Loading branch information