summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLeorize <leorize+oss@disroot.org>2020-06-03 23:51:59 -0500
committerAndreas Rumpf <rumpf_a@web.de>2020-06-06 21:11:53 +0200
commit9278e785bd9490029ea2f9eb353d241fd14b302a (patch)
tree0ec8aa2f5a73668e2ab3df4ff27c85c50e64fa34
parente4e3d99ee2381e5fc2fe922aa6933df8cebb599b (diff)
downloadNim-9278e785bd9490029ea2f9eb353d241fd14b302a.tar.gz
wrappers/openssl: fix SSL_CTX_ctrl signature
-rw-r--r--lib/wrappers/openssl.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim
index 01c53b755..cf248fc86 100644
--- a/lib/wrappers/openssl.nim
+++ b/lib/wrappers/openssl.nim
@@ -531,7 +531,7 @@ proc CRYPTO_malloc_init*() =
   when not useWinVersion and not defined(macosx) and not defined(android) and not defined(nimNoAllocForSSL):
     CRYPTO_set_mem_functions(allocWrapper, reallocWrapper, deallocWrapper)
 
-proc SSL_CTX_ctrl*(ctx: SslCtx, cmd: cint, larg: int, parg: pointer): int{.
+proc SSL_CTX_ctrl*(ctx: SslCtx, cmd: cint, larg: clong, parg: pointer): clong{.
   cdecl, dynlib: DLLSSLName, importc.}
 
 proc SSL_CTX_callback_ctrl(ctx: SslCtx, typ: cint, fp: PFunction): int{.