Menu

#56 ssl_openssl_lib:

Release_35
open
nobody
None
5
2021-08-19
2021-08-19
No

ssl_openssl_lib tries to set SSLLibFile/SSLUtilFile variables with the filename of the loaded li braries. This does not work on FPC/Linux:

  • It calls synafpc.GetModuleFileName to find the filename, but that function is not actually implemented. There is just a single line Result := 0;

  • There is a wrapper GetLibFileName with a THandle parameter. THandle is 32-bit on FPC. It needs to use TLibHandle which is 64-bit, otherwise it fails with a rangecheck error.

There is no need to set the filenames so it could just be removed (in patch). Or set the filenames when calling LoadLibrary with their filename (and as a reminder: LoadLibrary also crashs with a rangecheck error due to #42)

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB