summary refs log tree commit diff stats
path: root/lib/impure/ssl.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-11 12:54:41 +0200
committerAraq <rumpf_a@web.de>2012-07-11 12:54:41 +0200
commit877bd93905bb7d333fe97dbfc0744bf4dd3ab515 (patch)
tree68fcfc86f416f045317308581c3c88218378933f /lib/impure/ssl.nim
parent541d5637f7f9d79f48a065700b6886eb649484b7 (diff)
downloadNim-877bd93905bb7d333fe97dbfc0744bf4dd3ab515.tar.gz
fixes #164
Diffstat (limited to 'lib/impure/ssl.nim')
-rwxr-xr-xlib/impure/ssl.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/impure/ssl.nim b/lib/impure/ssl.nim
index 4a101ca92..54d524c7b 100755
--- a/lib/impure/ssl.nim
+++ b/lib/impure/ssl.nim
@@ -10,7 +10,7 @@
 ## This module provides an easy to use sockets-style 
 ## nimrod interface to the OpenSSL library.
 
-{.deprecate.}
+{.deprecated.}
 
 import openssl, strutils, os
 
@@ -59,10 +59,10 @@ proc recvLine*(sock: TSecureSocket, line: var TaintedString): bool =
   setLen(line.string, 0)
   while True:
     var c: array[0..0, char]
-    var n = BIO_read(sock.bio, c, c.len)
+    var n = BIO_read(sock.bio, c, c.len.cint)
     if n <= 0: return False
     if c[0] == '\r':
-      n = BIO_read(sock.bio, c, c.len)
+      n = BIO_read(sock.bio, c, c.len.cint)
       if n > 0 and c[0] == '\L':
         return True
       elif n <= 0:
@@ -73,7 +73,7 @@ proc recvLine*(sock: TSecureSocket, line: var TaintedString): bool =
 
 proc send*(sock: TSecureSocket, data: string) =
   ## Writes `data` to the socket.
-  if BIO_write(sock.bio, data, data.len()) <= 0:
+  if BIO_write(sock.bio, data, data.len.cint) <= 0:
     OSError()
 
 proc close*(sock: TSecureSocket) =