Skip to content

Commit 6916faf

Browse files
authored
Fix #17755 (#17766)
Signed-off-by: Dankr4d <dude569@freenet.de>
1 parent c7b7782 commit 6916faf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lib/wrappers/openssl.nim

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,23 @@ when sslVersion != "":
5252
from posix import SocketHandle
5353

5454
elif useWinVersion:
55-
when not defined(nimOldDlls) and defined(cpu64):
55+
when defined(openssl10) or defined(nimOldDlls):
56+
when defined(cpu64):
57+
const
58+
DLLSSLName* = "(ssleay32|ssleay64).dll"
59+
DLLUtilName* = "(libeay32|libeay64).dll"
60+
else:
61+
const
62+
DLLSSLName* = "ssleay32.dll"
63+
DLLUtilName* = "libeay32.dll"
64+
elif defined(cpu64):
5665
const
5766
DLLSSLName* = "(libssl-1_1-x64|ssleay64|libssl64).dll"
5867
DLLUtilName* = "(libcrypto-1_1-x64|libeay64).dll"
5968
else:
6069
const
6170
DLLSSLName* = "(libssl-1_1|ssleay32|libssl32).dll"
62-
DLLUtilName* = "(libcrypto-1_1|libeay32).dll"
71+
DLLUtilName* = "(libcrypto-1_1|libeay32).dll"
6372

6473
from winlean import SocketHandle
6574
else:

0 commit comments

Comments
 (0)