diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2012-07-25 22:02:39 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2012-07-25 22:02:39 +0100 |
commit | 05551c40cf58744ea962e6e20982d53e22140a5c (patch) | |
tree | 3be87dca4d1c0ab4cee1cdb31b333ddaebf25d39 | |
parent | 840e5f34efa77afa4eed5233172c8a2c16c6d456 (diff) | |
download | Nim-05551c40cf58744ea962e6e20982d53e22140a5c.tar.gz |
Fixed compilation of smtp module.
-rwxr-xr-x | lib/pure/smtp.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/smtp.nim b/lib/pure/smtp.nim index 58c1d4b58..abf268942 100755 --- a/lib/pure/smtp.nim +++ b/lib/pure/smtp.nim @@ -81,7 +81,8 @@ proc connect*(address: string, port = 25, result.sock = socket() if ssl: when defined(ssl): - result.sock.wrapSocket(verifyMode = CVerifyNone) + let ctx = newContext(verifyMode = CVerifyNone) + ctx.wrapSocket(result.sock) else: raise newException(ESystem, "SMTP module compiled without SSL support") |