Will work on your own system if you have the OpenSSL Dev package installed, ....
Newer distros are shipping with OpenSSL3, so it's not a dev library any more (at least not with OpenSUSE).
Sorry Don, I did not make myself clear. Linux systems have dev library packages that corresponds to library packages, they include extra things useful for developers, in practice, the important thing they provide is an unversioned symlink to the actual library file. See -
$> sudo apt install openssl-dev
....
ls -la /usr/lib/x86_64-linux-gnu/libssl.so*
lrwxrwxrwx 1 root root 11 Oct 24 2023 /usr/lib/x86_64-linux-gnu/libssl.so -> libssl.so.3
-rw-r--r-- 1 root root 696352 Oct 24 2023 /usr/lib/x86_64-linux-gnu/libssl.so.3
Note the first one is a symlink and does not have a version number, its intended for use at (dynamic) link time, but FPC tries to open it at run time ! And, as I said, it works. But should not be relied on IMHO. Just making the symlink works just as well by the way but end users get scared ....
// HACK!!! until FPC 3.2.X is updated
// use openssl version command to get your installed version number... mine is 3.1.4
openssl.DLLVersions[1] := '.3';
openssl.DLLVersions[2] := '.3.1';
openssl.DLLVersions[3] := '.3.1.4';
OK, that that would help with Windows, that would be good. But I had decided I was not willing to hack at the FPC.openssl, I'm not the security expert Thaddy is and when I looked at a diff of the two code sets, there were a lot more changes in the FPC-fixes version than just version numbers.
Its not a very good situation, one that can only be fixed with a proper release of FPC !
Davo