Jump to content
KBazX

Error in OverbyteIcsLIBEAY

Recommended Posts

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
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
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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×