diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-05-27 11:31:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-27 11:31:27 +0200 |
commit | 7e8eadb6ba9c94ea429ee7178e8cc8fbcbf558ea (patch) | |
tree | 2019043debb0685482e9ad29666277195e6e5d0c /lib | |
parent | 88bc2d8df4688ba6cf901c38957fec0b09ea086f (diff) | |
download | Nim-7e8eadb6ba9c94ea429ee7178e8cc8fbcbf558ea.tar.gz |
SSL implementation: added nimNoAllocForSSL
Diffstat (limited to 'lib')
-rw-r--r-- | lib/wrappers/openssl.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index 6609dc245..a24575d11 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -390,7 +390,7 @@ proc ERR_peek_last_error*(): cInt{.cdecl, dynlib: DLLUtilName, importc.} proc OPENSSL_config*(configName: cstring){.cdecl, dynlib: DLLSSLName, importc.} -when not useWinVersion and not defined(macosx) and not defined(android): +when not useWinVersion and not defined(macosx) and not defined(android) and not defined(nimNoAllocForSSL): proc CRYPTO_set_mem_functions(a,b,c: pointer){.cdecl, dynlib: DLLUtilName, importc.} @@ -404,7 +404,7 @@ when not useWinVersion and not defined(macosx) and not defined(android): if p != nil: dealloc(p) proc CRYPTO_malloc_init*() = - when not useWinVersion and not defined(macosx) and not defined(android): + 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{. |