Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make new code build with OpenSSL 3 headers.
  • Loading branch information
bartonjs committed Jul 13, 2021
commit e05907d7f657eee4896f2e2b1985891f24da3b40
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ int local_EVP_PKEY_check(EVP_PKEY_CTX* ctx)
{
case NID_rsaEncryption:
{
RSA* rsa = EVP_PKEY_get0_RSA(pkey);
const RSA* rsa = EVP_PKEY_get0_RSA(pkey);

if (rsa != NULL)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ EVP_PKEY* CryptoNative_EvpPKeyDuplicate(EVP_PKEY* currentKey, int32_t algId)

if (currentAlgId == EVP_PKEY_RSA)
{
RSA* rsa = EVP_PKEY_get0_RSA(currentKey);
const RSA* rsa = EVP_PKEY_get0_RSA(currentKey);

if (rsa == NULL || !EVP_PKEY_set1_RSA(newKey, rsa))
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-qual"
if (rsa == NULL || !EVP_PKEY_set1_RSA(newKey, (RSA*)rsa))
#pragma clang diagnostic pop
{
success = false;
}
Expand Down