File new_cryptopp.patch of Package iMule

From: Adam Mizerski <adam@mizerski.pl>
Date: 2019-08-03T11:02:42+02:00
Subject: Bugfix: API mismatch with crypto++ 6.0.0

Based on https://github.com/amule-project/amule/pull/120/

Index: iMule-2.3.3.3-src/src/ClientCreditsList.cpp
===================================================================
--- iMule-2.3.3.3-src.orig/src/ClientCreditsList.cpp
+++ iMule-2.3.3.3-src/src/ClientCreditsList.cpp
@@ -311,7 +311,7 @@ void CClientCreditsList::InitalizeCrypti
                 // calculate and store public key
                 CryptoPP::RSASSA_PKCS1v15_SHA_Verifier pubkey(*static_cast<CryptoPP::RSASSA_PKCS1v15_SHA_Signer *>(m_pSignkey));
                 CryptoPP::ArraySink asink(m_abyMyPublicKey, 80);
-                pubkey.DEREncode(asink);
+                pubkey.GetMaterial().Save(asink);
                 m_nMyPublicKeyLen = asink.TotalPutLength();
                 asink.MessageEnd();