* conservative partial revert of #19814 * fix * revert tssl * revert azure CI change * keep azure, revert version range * fully revert CI, add changelog * useOpenssl3 as separate define, .3 is a version
This commit is contained in:
parent
a73ae3e066
commit
79afee868d
6 changed files with 60 additions and 36 deletions
|
|
@ -544,6 +544,12 @@ proc fromSockAddr*(sa: Sockaddr_storage | SockAddr | Sockaddr_in | Sockaddr_in6,
|
|||
|
||||
when defineSsl:
|
||||
# OpenSSL >= 1.1.0 does not need explicit init.
|
||||
when not useOpenssl3:
|
||||
CRYPTO_malloc_init()
|
||||
doAssert SslLibraryInit() == 1
|
||||
SSL_load_error_strings()
|
||||
ERR_load_BIO_strings()
|
||||
OpenSSL_add_all_algorithms()
|
||||
|
||||
proc sslHandle*(self: Socket): SslPtr =
|
||||
## Retrieve the ssl pointer of `socket`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue