summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorLeorize <leorize+oss@disroot.org>2020-06-04 00:29:39 -0500
committerAndreas Rumpf <rumpf_a@web.de>2020-06-06 21:11:53 +0200
commitb5b191af4bb3dea9c49b2637d203957daf42478a (patch)
tree2b7348372d0f5f5f42670c552bb20152977d8bb7 /lib
parent61d4fbce4f0ae764092c51591112ce39d78fca73 (diff)
downloadNim-b5b191af4bb3dea9c49b2637d203957daf42478a.tar.gz
wrappers/openssl: fix SSL_CTX_set_mode
Follow up of 794042080b270d9da8d64bb4285ce83787bdec7e
Diffstat (limited to 'lib')
-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 2a03b577f..5af1edea5 100644
--- a/lib/wrappers/openssl.nim
+++ b/lib/wrappers/openssl.nim
@@ -546,7 +546,7 @@ proc SSL_CTX_callback_ctrl(ctx: SslCtx, typ: cint, fp: PFunction): int{.
   cdecl, dynlib: DLLSSLName, importc.}
 
 proc SSLCTXSetMode*(ctx: SslCtx, mode: int): int =
-  result = SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, mode, nil)
+  result = SSL_CTX_ctrl(ctx, SSL_CTRL_MODE, clong mode, nil)
 
 proc SSL_ctrl*(ssl: SslPtr, cmd: cint, larg: int, parg: pointer): int{.
   cdecl, dynlib: DLLSSLName, importc.}