Jump to content
Ralf Junker

OverbyteIcsLIBEAY.pas: f_CRYPTO_get_ex_data should return Pointer, not Integer

Recommended Posts

f_CRYPTO_get_ex_data should return Pointer, not Integer. The code in question is at OverbyteIcsLIBEAY.pas line 1847, SVN 1476:

f_CRYPTO_get_ex_data: function(r: PCRYPTO_EX_DATA; idx: integer): integer; cdecl = Nil;

The corresponding C declaration from OpenSSL's crypto.h:

void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx);

Suggested solution:

f_CRYPTO_get_ex_data: function(r: PCRYPTO_EX_DATA; idx: integer): Pointer; cdecl = Nil;

Reference: https://www.openssl.org/docs/man1.1.1/man3/CRYPTO_get_ex_data.html

 

Ralf

Share this post


Link to post
Quote

The CRYPTO_get_ex_new_index and similar functions have never been used by ICS.

Agreed. But maybe they are used or will be used somewhere else?

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
×