diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/net.nim | 2 | ||||
-rw-r--r-- | lib/pure/smtp.nim | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index c0bfc39cc..ea1c86c31 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -116,7 +116,7 @@ when defineSsl: else: type - SslContext* = void # TODO: Workaround #4797. + SslContext* = ref object # TODO: Workaround #4797. const BufferSize*: int = 4000 ## size of a buffered socket's buffer diff --git a/lib/pure/smtp.nim b/lib/pure/smtp.nim index b42664029..5eafc6680 100644 --- a/lib/pure/smtp.nim +++ b/lib/pure/smtp.nim @@ -87,7 +87,7 @@ proc debugSend*(smtp: Smtp | AsyncSmtp, cmd: string) {.multisync.} = await smtp.sock.send(cmd) proc debugRecv*(smtp: Smtp | AsyncSmtp): Future[TaintedString] {.multisync.} = - ## Receives a line of data from the socket connected to the + ## Receives a line of data from the socket connected to the ## SMTP server. ## ## If the ``smtp`` object was created with ``debug`` enabled, @@ -112,8 +112,7 @@ proc quitExcpt(smtp: Smtp, msg: string) = const compiledWithSsl = defined(ssl) when not defined(ssl): - type PSSLContext = ref object - let defaultSSLContext: PSSLContext = nil + let defaultSSLContext: SSLContext = nil else: var defaultSSLContext {.threadvar.}: SSLContext |