KBazX 0 Posted March 25, 2023 OverbyteIcsLIBEAY.pas Version: 8.70 Function IcsX509VerifyErrorToStr function string: Result := String(AnsiString(X509_verify_cert_error_string(ErrCode))); If OpenSSL is not loaded, then IcsX509VerifyErrorToStr fails with an exception: ClassName: EAccessViolation. Message: Access violation at address 00000000. Read of address 00000000 Share this post Link to post
FPiette 382 Posted March 25, 2023 If you want to use OpenSSL related functions, you must load it first. Share this post Link to post
KBazX 0 Posted March 25, 2023 1 hour ago, FPiette said: If you want to use OpenSSL related functions, you must load it first. But it may depend on the URL. Share this post Link to post
KBazX 0 Posted March 25, 2023 1 hour ago, FPiette said: If you want to use OpenSSL related functions, you must load it first. If I dynamically create the TSslHttpCli component for only one request, then I don't control the OpenSSL loading process. Share this post Link to post
Angus Robertson 574 Posted March 25, 2023 If you allow an HTTPS request to be made, you must load OpenSSL before that happens. Or use the modern component TSslHttpRest which handles all the SSL stuff for you. Angus Share this post Link to post
KBazX 0 Posted March 25, 2023 8 minutes ago, Angus Robertson said: If you allow an HTTPS request to be made, you must load OpenSSL before that happens. But if the OpenSSL libraries are located next to the file, then the loading of OpenSSL is successful automatically. Share this post Link to post