ports/net/poco/patches/patch-Crypto_src_RSAKeyImpl_cpp

27 lines
599 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: Crypto/src/RSAKeyImpl.cpp
--- Crypto/src/RSAKeyImpl.cpp.orig
+++ Crypto/src/RSAKeyImpl.cpp
@@ -222,19 +222,19 @@ int RSAKeyImpl::size() const
RSAKeyImpl::ByteVec RSAKeyImpl::modulus() const
{
- return convertToByteVec(_pRSA->n);
+ return convertToByteVec(RSA_get0_n(_pRSA));
}
RSAKeyImpl::ByteVec RSAKeyImpl::encryptionExponent() const
{
- return convertToByteVec(_pRSA->e);
+ return convertToByteVec(RSA_get0_e(_pRSA));
}
RSAKeyImpl::ByteVec RSAKeyImpl::decryptionExponent() const
{
- return convertToByteVec(_pRSA->d);
+ return convertToByteVec(RSA_get0_d(_pRSA));
}