mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Fix code style
This commit is contained in:
parent
fd3db800fe
commit
8b8e7312ea
@ -349,13 +349,11 @@ void Crypt::rsaSetPrivateKey(const std::string& p, const std::string& q, const s
|
|||||||
BN_dec2bn(&m_rsa->q, q.c_str());
|
BN_dec2bn(&m_rsa->q, q.c_str());
|
||||||
BN_dec2bn(&m_rsa->d, d.c_str());
|
BN_dec2bn(&m_rsa->d, d.c_str());
|
||||||
// clear rsa cache
|
// clear rsa cache
|
||||||
if (m_rsa->_method_mod_p)
|
if(m_rsa->_method_mod_p) {
|
||||||
{
|
|
||||||
BN_MONT_CTX_free(m_rsa->_method_mod_p);
|
BN_MONT_CTX_free(m_rsa->_method_mod_p);
|
||||||
m_rsa->_method_mod_p = nullptr;
|
m_rsa->_method_mod_p = nullptr;
|
||||||
}
|
}
|
||||||
if (m_rsa->_method_mod_q)
|
if(m_rsa->_method_mod_q) {
|
||||||
{
|
|
||||||
BN_MONT_CTX_free(m_rsa->_method_mod_q);
|
BN_MONT_CTX_free(m_rsa->_method_mod_q);
|
||||||
m_rsa->_method_mod_q = nullptr;
|
m_rsa->_method_mod_q = nullptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user