Fix broken asyncnet module.

This commit is contained in:
Dominik Picheta
2016-06-03 14:21:15 +01:00
parent c0a940380a
commit f73dd02787
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -89,7 +89,7 @@ when defineSsl:
protSSLv2, protSSLv3, protTLSv1, protSSLv23
SslContext* = ref object
context: SslCtx
context*: SslCtx
extraInternalIndex: int
referencedData: HashSet[int]