fixes #15177, the error message is now what it should have been (#15195)

This commit is contained in:
Andreas Rumpf 2020-08-17 14:32:52 +02:00 • committed by GitHub
commit 6feb3900b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

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

View file

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