mirror of
https://github.com/edubart/otclient.git
synced 2025-05-15 08:39:21 +02:00
Fix compilation with GMP
This commit is contained in:
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);
|
mpz_set_str(m_d, d.c_str(), 10);
|
||||||
|
|
||||||
// n = p * q
|
// n = p * q
|
||||||
mpz_mul(n, p, q);
|
mpz_mul(m_n, m_p, m_q);
|
||||||
#else
|
#else
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100005L
|
#if OPENSSL_VERSION_NUMBER < 0x10100005L
|
||||||
BN_dec2bn(&m_rsa->p, p.c_str());
|
BN_dec2bn(&m_rsa->p, p.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user