Skip to content

Commit 389a488

Browse files
committed
The Find OpenSSL Lib algorithm no longer looks for a library without any suffix, unless an empty suffix is included in the list of suffixes. For Linux, the default empty suffix is the first in the list (e.g. looks for libcrtypo.so first. For Windows, libcrypto.dll is the last in the list.
1 parent b68966e commit 389a488

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/opensslHdrs/IdSSLOpenSSLAPI.pas

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ interface
8686
{$IFDEF UNIX}
8787
DirListDelimiter = ':';
8888
LibSuffix = '.so';
89-
DefaultLibVersions = '.3:.1.1:.1.0.2:.1.0.0:.0.9.9:.0.9.8:.0.9.7:.0.9.6';
89+
DefaultLibVersions = ':.3:.1.1:.1.0.2:.1.0.0:.0.9.9:.0.9.8:.0.9.7:.0.9.6';
9090
{$ENDIF}
9191
{$IFDEF WINDOWS}
9292
DirListDelimiter = ';';
@@ -493,8 +493,6 @@ function TOpenSSLDynamicLibProvider.FindLibrary(LibName , LibVersions : string;
493493
LibVersionsList.Free;
494494
end;
495495
end;
496-
if Result = NilHandle then
497-
DoLoadLibrary(OpenSSLPath + LibName);
498496
end;
499497

500498
constructor TOpenSSLDynamicLibProvider.Create;

0 commit comments

Comments
 (0)