Export sslHandle in net and asyncnet. (#17573)
This commit is contained in:
parent
9b126de65c
commit
9d86639a0b
3 changed files with 12 additions and 0 deletions
|
|
@ -736,6 +736,11 @@ proc close*(socket: AsyncSocket) =
|
|||
raiseSSLError()
|
||||
|
||||
when defineSsl:
|
||||
proc sslHandle*(self: AsyncSocket): SslPtr =
|
||||
## Retrieve the ssl pointer of `socket`.
|
||||
## Useful for interfacing with `openssl`.
|
||||
self.sslHandle
|
||||
|
||||
proc wrapSocket*(ctx: SslContext, socket: AsyncSocket) =
|
||||
## Wraps a socket in an SSL context. This function effectively turns
|
||||
## `socket` into an SSL socket.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue