This commit is contained in:
Dominik Picheta
2016-09-19 19:36:35 +02:00
parent 8386476592
commit 1fb5dd2477
2 changed files with 7 additions and 0 deletions

View File

@@ -106,6 +106,9 @@ when defineSsl:
{.deprecated: [ESSL: SSLError, TSSLCVerifyMode: SSLCVerifyMode,
TSSLProtVersion: SSLProtVersion, PSSLContext: SSLContext,
TSSLAcceptResult: SSLAcceptResult].}
else:
type
SslContext* = void # TODO: Workaround #4797.
const
BufferSize*: int = 4000 ## size of a buffered socket's buffer

View File

@@ -1,3 +1,7 @@
discard """
cmd: "nim c -d:ssl $file"
"""
import strutils
from net import TimeoutError