Add OpenSSL 1.1.0 support #5000

Add a simple online test
This commit is contained in:
Federico Ceratto 2017-12-13 19:07:57 +00:00
commit a78d7a31f7
3 changed files with 113 additions and 22 deletions

View file

@ -413,7 +413,7 @@ proc isIpAddress*(address_str: string): bool {.tags: [].} =
when defineSsl:
CRYPTO_malloc_init()
SslLibraryInit()
doAssert SslLibraryInit() == 1
SslLoadErrorStrings()
ErrLoadBioStrings()
OpenSSL_add_all_algorithms()