Jump to content
Ralf Junker

OverbyteIcsSSLEAY.pas f_SSL_bytes_to_cipher_list() declaration mismatch

Recommended Posts

OverbyteIcsSSLEAY.pas line 2095 (SVN 1464) declares f_SSL_bytes_to_cipher_list() like this:

f_SSL_bytes_to_cipher_list: function(s: PSSL; cbytes: PAnsiChar; len: size_t; isv2format: Boolean; sk, scvsvs: PSTACK_OF_SSL_CIPHER): LongInt; cdecl = nil; { V8.64 }

This is different from the OpenSSL definition. The Pascal declaration passes sk and scvsvs as simple pointers, instead of pointer addresses or var parameters. In contrast, the C header uses a double pointer for both parameters:

int SSL_bytes_to_cipher_list(SSL *s, const unsigned char *bytes, size_t len, int isv2format, STACK_OF(SSL_CIPHER) **sk, STACK_OF(SSL_CIPHER) **scsvs);

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

 

Ralf

Edited by Ralf Junker

Share this post


Link to post

Thanks, that was added recently to SVN and is not yet used due to the warning 'not working yet ' will fix it. 

 

Angus

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
×