Export sslHandle in net and asyncnet. (#17573)

This commit is contained in:
Ardek Romak 2021-05-07 01:02:37 +03:00 • committed by GitHub
commit 9d86639a0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -501,6 +501,11 @@ when defineSsl:
ERR_load_BIO_strings()
OpenSSL_add_all_algorithms()
proc sslHandle*(self: Socket): SslPtr =
## Retrieve the ssl pointer of `socket`.
## Useful for interfacing with `openssl`.
self.sslHandle
proc raiseSSLError*(s = "") =
## Raises a new SSL error.
if s != "":