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:
|
else:
|
||||||
type
|
type
|
||||||
SslContext* = void # TODO: Workaround #4797.
|
SslContext* = ref object # 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
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ proc debugSend*(smtp: Smtp | AsyncSmtp, cmd: string) {.multisync.} =
|
||||||
await smtp.sock.send(cmd)
|
await smtp.sock.send(cmd)
|
||||||
|
|
||||||
proc debugRecv*(smtp: Smtp | AsyncSmtp): Future[TaintedString] {.multisync.} =
|
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.
|
## SMTP server.
|
||||||
##
|
##
|
||||||
## If the ``smtp`` object was created with ``debug`` enabled,
|
## If the ``smtp`` object was created with ``debug`` enabled,
|
||||||
|
|
@ -112,8 +112,7 @@ proc quitExcpt(smtp: Smtp, msg: string) =
|
||||||
const compiledWithSsl = defined(ssl)
|
const compiledWithSsl = defined(ssl)
|
||||||
|
|
||||||
when not defined(ssl):
|
when not defined(ssl):
|
||||||
type PSSLContext = ref object
|
let defaultSSLContext: SSLContext = nil
|
||||||
let defaultSSLContext: PSSLContext = nil
|
|
||||||
else:
|
else:
|
||||||
var defaultSSLContext {.threadvar.}: SSLContext
|
var defaultSSLContext {.threadvar.}: SSLContext
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue