freebsd-ports/comms/cqrlog/files/patch-src_synapse_ssl__openssl__lib.pas
Stephen Hurd bea0f90ec2 Update to latest release, use preferred OpenSSL libs.
CQRLOG does *not* work with the version of OpenSSL in 10.4.  This only seems
to impact the LoTW integration though, so I don't think it needs to be
marked as broken with that version.

Also, update all the patches to use makepatch.
2018-07-11 04:18:37 +00:00

29 lines
920 B
ObjectPascal

--- src/synapse/ssl_openssl_lib.pas.orig 2018-07-11 04:13:02 UTC
+++ src/synapse/ssl_openssl_lib.pas
@@ -1875,23 +1875,12 @@ begin
Paths := TStringList.Create;
try
- Paths.Add('/usr/lib64/');
- Paths.Add('/lib64/');
- Paths.Add('/usr/lib/x86_64-linux-gnu/');
- Paths.Add('/lib/x86_64-linux-gnu/');
- Paths.Add('/usr/lib/i386-linux-gnu/');
- Paths.Add('/lib/i386-linux-gnu/');
+ Paths.Add('%%OPENSSLLIB%%');
Paths.Add('/usr/lib/');
Paths.Add('/lib/');
- DLLSSLName := MyFindFile('libssl*1.0.*', Paths);
- DLLUtilName := MyFindFile('libcrypto*1.0.*', Paths);
-
- if (DLLSSLName = '') then
- begin
- DLLSSLName := MyFindFile('libssl*1.1*', Paths);
- DLLUtilName := MyFindFile('libcrypto*1.1*', Paths)
- end
+ DLLSSLName := MyFindFile('libssl.so', Paths);
+ DLLUtilName := MyFindFile('libcrypto.so', Paths)
finally
FreeAndNil(Paths)
end;