Call Init for request and response object to avoid crashes on first plugin contact

This commit is contained in:
denk-mal 2015-06-18 12:58:28 +02:00
parent 4008e6ab58
commit eab4861383

View File

@ -117,6 +117,7 @@ Request::Request():
m_requestType(INVALID), m_requestType(INVALID),
m_cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt) m_cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Decrypt)
{ {
m_cipher.init();
} }
QString Request::nonce() const QString Request::nonce() const
@ -286,6 +287,7 @@ Response::Response(const Request &request, QString hash):
m_hash(hash), m_hash(hash),
m_cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Encrypt) m_cipher(SymmetricCipher::Aes256, SymmetricCipher::Cbc, SymmetricCipher::Encrypt)
{ {
m_cipher.init();
} }
void Response::setVerifier(QString key) void Response::setVerifier(QString key)