You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If anyone is compiling this on a box that has OpenSSL 1.1 and above but using the stable version of both FPC(3.0.4) and Lazarus(2.0.6) and below, they will invariably get a:
ESSL: failed to create ssl context.
This is due to the fact that the OpenSSL API has changed from 1.0.x to 1.1.x.
I would advise you opt for Synapse(40.1) that you can install from the Online Package Manager and instead of the TfpHTTPClient, use THTTPSend. This makes it work regardless of the FPC version on the users computer.
I understand that you want to keep it to a bare minimum and not install external stuff. I've tried to solve this within the code itself and it can't be done. The file on the subject line has to be updated, but it is inside the FPC distribution, so outside of this code.
This applies, mainly, to Linux users since the latest symlink on the libssl.so points to libssl.so.1.1. I'm guessing that any updated Debian-based Linux distribution will have this issue, since the results of a Google search about this error are dated to 2018.
Windows users usually install their own ssl DLLs and avoid this issue.
Thanks in advance,
Gus
The text was updated successfully, but these errors were encountered:
Thanks for reporting. I also replace the FPHttlClient of FPC3.0.6 by the patched version used by the OnlinePackageManager, I was not aware that SSL has no many issues...
Hi there,
If anyone is compiling this on a box that has
OpenSSL
1.1 and above but using the stable version of bothFPC
(3.0.4) andLazarus
(2.0.6) and below, they will invariably get a:ESSL: failed to create ssl context.
This is due to the fact that the
OpenSSL
API has changed from 1.0.x to 1.1.x.I would advise you opt for
Synapse
(40.1) that you can install from theOnline Package Manager
and instead of theTfpHTTPClient
, useTHTTPSend
. This makes it work regardless of theFPC
version on the users computer.I understand that you want to keep it to a bare minimum and not install external stuff. I've tried to solve this within the code itself and it can't be done. The file on the subject line has to be updated, but it is inside the
FPC
distribution, so outside of this code.This applies, mainly, to Linux users since the latest symlink on the
libssl.so
points tolibssl.so.1.1
. I'm guessing that any updated Debian-based Linux distribution will have this issue, since the results of a Google search about this error are dated to 2018.Windows users usually install their own ssl DLLs and avoid this issue.
Thanks in advance,
Gus
The text was updated successfully, but these errors were encountered: