Skip to content

Update ike.keyfile.cpp to work with OpenSSL 3.0#4

Open
reos-rcrozier wants to merge 2 commits intoben-foxmoore:masterfrom
reos-rcrozier:master
Open

Update ike.keyfile.cpp to work with OpenSSL 3.0#4
reos-rcrozier wants to merge 2 commits intoben-foxmoore:masterfrom
reos-rcrozier:master

Conversation

@reos-rcrozier
Copy link
Copy Markdown

In OpenSSL 3.0 VP_PKEY_get0_RSA() now returns a pointer of type const struct rsa_st* to an immutable value. This has been made compatible with both OpenSSL 3.0.0 and earlier versions of OpenSSL by casting the returned value to (rsa_st*) as follows: rsa = (rsa_st*)EVP_PKEY_get0_RSA(pubKey);

Do not try to modify the contents of the returned struct.

In OpenSSL 3.0 VP_PKEY_get0_RSA() now returns a pointer of type "const struct rsa_st*" to an immutable value. I made this compatible with both OpenSSL 3.0.0 and earlier versions of OpenSSL by casting the returned value to (rsa_st*) as follows:
rsa = (rsa_st*)EVP_PKEY_get0_RSA(pubKey);
Do not try to modify the contents of the returned struct.
change failing test for pthreads library
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

Successfully merging this pull request may close these issues.

1 participant