mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
Fix broken asyncnet module.
This commit is contained in:
@@ -487,7 +487,7 @@ when defineSsl:
|
||||
## prone to security vulnerabilities.
|
||||
socket.isSsl = true
|
||||
socket.sslContext = ctx
|
||||
socket.sslHandle = SSLNew(SSLCTX(socket.sslContext))
|
||||
socket.sslHandle = SSLNew(socket.sslContext.context)
|
||||
if socket.sslHandle == nil:
|
||||
raiseSslError()
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ when defineSsl:
|
||||
protSSLv2, protSSLv3, protTLSv1, protSSLv23
|
||||
|
||||
SslContext* = ref object
|
||||
context: SslCtx
|
||||
context*: SslCtx
|
||||
extraInternalIndex: int
|
||||
referencedData: HashSet[int]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user