forked from qt-creator/qt-creator
Qnx: Fixing incorrect ssh key generation
blackberry-connect tool requires to have public key with no comment
or comment with 'usename@hostname' format
QSsh::SshKeyGenerator creates comments in 'QtCreator/TIMEZONE' format
there we are stripping them out
This issue has been introduced by commit:
bd064d50e6
Task-number: QTCREATORBUG-9888
Change-Id: Ied96720b004cfe4f5bb95adec3401b6b6d30db5c
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -249,11 +249,6 @@ bool BlackBerryDeviceConfigurationWizardSshKeyPage::saveKeys(const QByteArray &p
|
||||
|
||||
Utils::FileSaver pubSaver(publicKeyPath);
|
||||
|
||||
// blackberry-connect requires an @ character to be included in the RSA comment
|
||||
const QString atHost = QLatin1Char('@') + QHostInfo::localHostName();
|
||||
QByteArray pubKeyContent = publicKey;
|
||||
pubKeyContent.append(atHost.toLocal8Bit());
|
||||
|
||||
pubSaver.write(publicKey);
|
||||
if (!pubSaver.finalize(this))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user