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
|
||||||
|
|
|
||||||
|
|
@ -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