When trying to use [this
library](https://git.sr.ht/~ehmry/nim_imap/tree/master/item/src/imap.nim), I
get a `error:1420C114:SSL routines:ssl_write_internal:uninitialized`, whenever
I use any proc, which uses `sendLine`, which essentially is just a
`imap.sock.send(line & CRLF)`.
This is how the AsyncSocket & SSL Context is initialised.
proc newImapClient*(cb: StatusCallback): ImapClient =
## Create a new Imap instance
result = ImapClient(
sslContext: net.newContext(verifyMode = CVerifyNone),
sock: newAsyncSocket(),
tagCallbacks: initTable[string, LineCallback](4),
anyCallbacks: initDeque[LineCallback](4),
statCb: cb
)
wrapSocket(result.sslContext, result.sock)
reset result.status
Run
How can this be fixed?