File xml-security-c-OpenSSL3-compat.patch of Package xml-security-c

From 616bb06d94abb4b1bea610d603ac923224325a4a Mon Sep 17 00:00:00 2001
From: Scott Cantor <scantor@apache.org>
Date: Thu, 14 Oct 2021 18:22:11 +0000
Subject: SANTUARIO-567 - xml-security-c build failure with
 openssl-3.0.0

https://issues.apache.org/jira/browse/SANTUARIO-567

git-svn-id: https://svn.apache.org/repos/asf/santuario/xml-security-cpp/trunk@1894259 13f79535-47bb-0310-9956-ffa450edef68
---
 xsec/enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xsec/enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp b/xsec/enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp
index b59a9236..52b93fe4 100644
--- a/xsec/enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp
+++ b/xsec/enc/OpenSSL/OpenSSLCryptoKeyRSA.cpp
@@ -413,7 +413,7 @@ OpenSSLCryptoKeyRSA::OpenSSLCryptoKeyRSA(EVP_PKEY *k) :
     if (k == NULL || EVP_PKEY_id(k) != EVP_PKEY_RSA)
         return; // Nothing to do with us
 
-    RSA *rsa = EVP_PKEY_get0_RSA(k);
+    const RSA *rsa = EVP_PKEY_get0_RSA(k);
 
     const BIGNUM *n=NULL, *e=NULL, *d=NULL;
     RSA_get0_key(rsa, &n, &e, &d);
-- 
2.43.0

openSUSE Build Service is sponsored by