Get rid of the "toLatin1()" call when converting the base64 encrypted string to a bytearray.

This commit is contained in:
Ken Moore
2016-02-19 16:25:13 -05:00
parent 9bb9add1db
commit 19618b7581

View File

@@ -331,7 +331,9 @@ void AuthorizationManager::ClearHostFail(QString host){
QString AuthorizationManager::DecryptSSLString(QString encstring, QString pubkey){
//Convert from the base64 string back to a byte array
QByteArray enc = QByteArray::fromBase64(encstring.toLatin1());
QByteArray enc;
enc.append(encstring);
enc = QByteArray::fromBase64(enc);
qDebug() << "Decrypt String:" << "Length:" << enc.length() << enc;
qDebug() << " - Base64:" << encstring;
unsigned char decode[4098] = {};