Fix compilation with GMP

This commit is contained in:
Marcin Michalski 2022-04-28 00:07:46 +01:00 committed by diath
parent 836ea2bdc6
commit f0d7963883

@ -267,7 +267,7 @@ void Crypt::rsaSetPrivateKey(const std::string& p, const std::string& q, const s
mpz_set_str(m_d, d.c_str(), 10);
// n = p * q
mpz_mul(n, p, q);
mpz_mul(m_n, m_p, m_q);
#else
#if OPENSSL_VERSION_NUMBER < 0x10100005L
BN_dec2bn(&m_rsa->p, p.c_str());