Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
varjolintu committed Feb 4, 2024
1 parent 8a19281 commit be87c0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sshagent/OpenSSHKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ bool OpenSSHKey::parsePKCS1PEM(const QByteArray& in)
return false;
}

if (QString::fromLatin1(magic) != "openssh-key-v1") {
if (QString::fromLatin1(magic.toStdString().c_str()) != "openssh-key-v1") {
m_error = tr("Key file magic header id invalid");
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestPasskeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void TestPasskeys::testCreatingAttestationObjectWithEC()
TestingVariables testingVariables = {id, predefinedFirst, predefinedSecond};
auto result = browserPasskeys()->buildAttestationObject(publicKeyCredentialOptions, "", id, testingVariables);
QCOMPARE(
QString(result.cborEncoded),
QString(result.cborEncoded.toStdString().c_str()),
QString("\xA3"
"cfmtdnonegattStmt\xA0hauthDataX\xA4t\xA6\xEA\x92\x13\xC9\x9C/t\xB2$\x92\xB3 \xCF@&*\x94\xC1\xA9P\xA0"
"9\x7F)%\x0B`\x84\x1E\xF0"
Expand Down

0 comments on commit be87c0f

Please sign in to comment.