diff options
author | Dankr4d <dude569@freenet.de> | 2021-04-18 23:39:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-18 23:39:05 +0200 |
commit | 6916faf83c8af609304bde9d2ea2ed62c514cbf1 (patch) | |
tree | a2687a94240ccabb74c9d54131dc20f41331c30f /lib | |
parent | c7b77829fe26d9053df2181d96ffc358409674a6 (diff) | |
download | Nim-6916faf83c8af609304bde9d2ea2ed62c514cbf1.tar.gz |
Fix #17755 (#17766)
Signed-off-by: Dankr4d <dude569@freenet.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/wrappers/openssl.nim | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index 9c33386c5..1a8893957 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -52,14 +52,23 @@ when sslVersion != "": from posix import SocketHandle elif useWinVersion: - when not defined(nimOldDlls) and defined(cpu64): + when defined(openssl10) or defined(nimOldDlls): + when defined(cpu64): + const + DLLSSLName* = "(ssleay32|ssleay64).dll" + DLLUtilName* = "(libeay32|libeay64).dll" + else: + const + DLLSSLName* = "ssleay32.dll" + DLLUtilName* = "libeay32.dll" + elif defined(cpu64): const DLLSSLName* = "(libssl-1_1-x64|ssleay64|libssl64).dll" DLLUtilName* = "(libcrypto-1_1-x64|libeay64).dll" else: const DLLSSLName* = "(libssl-1_1|ssleay32|libssl32).dll" - DLLUtilName* = "(libcrypto-1_1|libeay32).dll" + DLLUtilName* = "(libcrypto-1_1|libeay32).dll" from winlean import SocketHandle else: |