summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-07-25 00:13:12 +0200
committerAraq <rumpf_a@web.de>2012-07-25 00:13:12 +0200
commitb5a44481f9657341904e65729de8dddc22cd8330 (patch)
tree1e191e5e074bee9f7371c68ac9040543b3a3ff87 /lib
parent1e4fc02e5eb1a160ba00540ca77210d5405adc5b (diff)
parentd640fe7af8294c6d7e41429dba73bef506b30864 (diff)
downloadNim-b5a44481f9657341904e65729de8dddc22cd8330.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'lib')
-rwxr-xr-xlib/wrappers/openssl.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim
index 309b2fe5d..dadd02818 100755
--- a/lib/wrappers/openssl.nim
+++ b/lib/wrappers/openssl.nim
@@ -72,7 +72,7 @@ type
   PASN1_UTCTIME* = SslPtr
   PASN1_cInt* = SslPtr
   PPasswdCb* = SslPtr
-  PFunction* = proc ()
+  PFunction* = proc () {.cdecl.}
   DES_cblock* = array[0..7, int8]
   PDES_cblock* = ptr DES_cblock
   des_ks_struct*{.final.} = object 
@@ -209,7 +209,7 @@ proc SSL_CTX_new*(meth: PSSL_METHOD): PSSL_CTX{.cdecl,
 proc SSL_CTX_load_verify_locations*(ctx: PSSL_CTX, CAfile: cstring,
     CApath: cstring): cInt{.cdecl, dynlib: DLLSSLName, importc.}
 proc SSL_CTX_free*(arg0: PSSL_CTX){.cdecl, dynlib: DLLSSLName, importc.}
-proc SSL_CTX_set_verify*(s: PSSL_CTX, mode: int, cb: proc (a: int, b: pointer): int){.cdecl, dynlib: DLLSSLName, importc.}
+proc SSL_CTX_set_verify*(s: PSSL_CTX, mode: int, cb: proc (a: int, b: pointer): int {.cdecl.}){.cdecl, dynlib: DLLSSLName, importc.}
 proc SSL_get_verify_result*(ssl: PSSL): int{.cdecl,
     dynlib: DLLSSLName, importc.}