Merge pull request #2320 from aurora/ssl-sigsegv

openssl: do not set mem functions on osx
This commit is contained in:
Andreas Rumpf
2015-03-12 16:17:47 +01:00

View File

@@ -298,7 +298,7 @@ when not useWinVersion:
if p != nil: dealloc(p)
proc CRYPTO_malloc_init*() =
when not useWinVersion:
when not useWinVersion and not defined(macosx):
CRYPTO_set_mem_functions(allocWrapper, reallocWrapper, deallocWrapper)
proc SSL_CTX_ctrl*(ctx: SslCtx, cmd: cInt, larg: int, parg: pointer): int{.