This commit is contained in:
parent
cd28fe2ef7
commit
6feb3900b1
2 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue