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

View file

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