Fix rsa change, messagebox and remove lua variable from c++

This commit is contained in:
Henrique Santiago
2012-08-14 17:37:07 -03:00
parent d0b3c04853
commit 4e8afab335
5 changed files with 21 additions and 7 deletions

View File

@@ -265,6 +265,9 @@ std::string Crypt::sha512Encode(const std::string& decoded_string, bool upperCas
void Crypt::rsaSetPublicKey(const std::string& n, const std::string& e)
{
RSA_free(m_rsa);
m_rsa = RSA_new();
BN_dec2bn(&m_rsa->n, n.c_str());
BN_dec2bn(&m_rsa->e, e.c_str());
}