Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freepascal console app #2

Open
warlomak opened this issue Feb 25, 2025 · 1 comment
Open

freepascal console app #2

warlomak opened this issue Feb 25, 2025 · 1 comment

Comments

@warlomak
Copy link

need some fixes for freepascal console app:

SynSrv.pas :
{$IFNDEF FPC}
[ComponentPlatformsAttribute(pidWin32 or pidWin64)]
{$ENDIF}

ssl_openssl_lib.pas :
{$ELSE}
SysUtils;//,
// LCLIntf, LCLType, LMessages;
{$ENDIF}

then all work fine.

@warlomak
Copy link
Author

and i added exception for check https certs:

SynHttpSrv.pas:
procedure TSynHttpServer.InitHttps(const CertFile, KeyFile, KeyPassword, CaCertFile: string);
begin
if not FileExists(CertFile) or not FileExists(KeyFile) then
raise Exception.Create('Cert files not found');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant