Commit 66fa9098 authored by Dorian Zedler's avatar Dorian Zedler

cleaned up some debug messages

parent 9f3cebd5
......@@ -232,7 +232,7 @@ QVariantList AthleteProfiles::getResults( QString userName ) {
results.append(athlete);
}
qDebug() << "found results: " << results;
//qDebug() << "found results: " << results;
return results;
}
......
......@@ -203,7 +203,7 @@ void ExtensionConn::gotError(QAbstractSocket::SocketError err)
this->lastError = strError;
emit lastErrorChanged();
this->log("got error: " + strError + "(" + QString::number(err) + ")", 0);
this->log("got error: " + strError + "(" + QString::number(err) + ")", 2);
}
void ExtensionConn::connectionTimeout() {
......
......@@ -702,15 +702,13 @@ void MainActivity::handleSocketCommand(SocketServer::socketClient *socketClient,
replyObj.insert("activeAthlete", this->athleteProfiles->getCurrentAthlete());
replyData = replyObj;
qDebug() << athltesVar;
//replyData = athletes;
replyHeader = 200;
break;
}
case 4004: {
// get all athletes
// get results of an athlete
QVariant resultsVar = this->athleteProfiles->getResults(requestData.toString());
replyData = resultsVar.toJsonValue();
......@@ -726,6 +724,8 @@ void MainActivity::handleSocketCommand(SocketServer::socketClient *socketClient,
break;
}
qDebug() << "[INFO][MAIN] recieved a software update ... checking signature ...";
// this is the public key of the offical Itsblue Development software team.
QByteArray pub = QByteArray::fromBase64("GetAJE+g0xJ0tUuEcdK5ELV1Wqr4f/7tq0xMGUDy1Udbgd68Ro1eabzBRhuoqzy6+MDDhhB5aYl9fIE8/DHcyGSRX/CcjIpH6CFJyBk9u2WStllyYJM6++kDTgDGG7V4Dq9gKBPr4GOG3Lq4xAtiIEYr/ZVTaR+tHl2SZYBMxgkr7Q62gc6x7MITIKINUjlKh084+7/CSlo+s0VSyUrCB+pTFHWn33DGeoX8TySxalIjyELBfEiGWKaW4LQD/s//a792Ff8AaSNDTUUq0gVMCY1oFgY++4DpQGoUy69Pn7cw5EbYAyF/mISVVvqSLTh99Uy3bhPEm55ed7TJ1xNZYQ==");
QRSAEncryption e(QRSAEncryption::Rsa::RSA_1024);
......@@ -734,6 +734,7 @@ void MainActivity::handleSocketCommand(SocketServer::socketClient *socketClient,
QString signedMessage = requestData.toString();
if (!e.checkSignMessage(signedMessage.toUtf8(), pub)) {
qDebug() << "[INFO][MAIN] update signature invalid ...";
replyHeader = 401;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment