forked from qt-creator/qt-creator
Combine some SshConnectionParameter members
Combine host, port, username and password into a 'url' member and add some convenience accessors. Change-Id: Iddc26ff00dad1285c96aa56f196dbc4febe8e974 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -72,14 +72,10 @@ IDevice::Ptr GenericLinuxDeviceConfigurationWizard::device()
|
||||
{
|
||||
SshConnectionParameters sshParams;
|
||||
sshParams.options &= ~SshConnectionOptions(SshEnableStrictConformanceChecks); // For older SSH servers.
|
||||
sshParams.host = d->setupPage.hostName();
|
||||
sshParams.userName = d->setupPage.userName();
|
||||
sshParams.port = 22;
|
||||
sshParams.url = d->setupPage.url();
|
||||
sshParams.timeout = 10;
|
||||
sshParams.authenticationType = d->setupPage.authenticationType();
|
||||
if (sshParams.authenticationType != SshConnectionParameters::AuthenticationTypePublicKey)
|
||||
sshParams.password = d->setupPage.password();
|
||||
else
|
||||
if (sshParams.authenticationType == SshConnectionParameters::AuthenticationTypePublicKey)
|
||||
sshParams.privateKeyFile = d->setupPage.privateKeyFilePath();
|
||||
IDevice::Ptr device = LinuxDevice::create(d->setupPage.configurationName(),
|
||||
Core::Id(Constants::GenericLinuxOsType), IDevice::Hardware);
|
||||
|
||||
Reference in New Issue
Block a user