From f8faabddda5b04d224837c94f50864d717cbea1b Mon Sep 17 00:00:00 2001 From: olegkap_cp Date: Tue, 24 Jan 2012 14:48:04 +0000 Subject: [PATCH] Fix WindowAdjusment for SCP and SFTP Fix Key regeneration Minor comments and other fixes Add Current* properties to ConnectionInfo object to specify parameters that currently by the connection --- .../Renci.SshNet.NET35.csproj | 5 +- .../Renci.SshNet.Silverlight.csproj | 5 +- .../Renci.SshNet.WindowsPhone.csproj | 5 +- .../Renci.SshNet/Channels/Channel.cs | 7 +- .../Channels/ChannelDirectTcpip.cs | 5 +- .../Renci.SshNet/ConnectionInfo.cs | 65 ++++++++++++------- Renci.SshClient/Renci.SshNet/ForwardedPort.cs | 8 --- .../Renci.SshNet/ForwardedPortDynamic.cs | 9 ++- .../Renci.SshNet/ForwardedPortRemote.cs | 6 ++ .../KeyboardInteractiveConnectionInfo.cs | 2 +- .../Messages/Transport/DisconnectMessage.cs | 2 +- .../Transport/IKeyExchangedAllowed.cs | 14 ++++ .../KeyExchangeDhGroupExchangeInit.cs | 2 +- .../KeyExchangeDhGroupExchangeRequest.cs | 2 +- .../Transport/KeyExchangeDhInitMessage.cs | 2 +- .../Transport/KeyExchangeInitMessage.cs | 2 +- .../Messages/Transport/NewKeysMessage.cs | 2 +- .../Renci.SshNet/Netconf/NetConfSession.cs | 7 +- .../Renci.SshNet/PasswordConnectionInfo.cs | 3 +- .../Renci.SshNet/Renci.SshNet.csproj | 1 + Renci.SshClient/Renci.SshNet/ScpClient.NET.cs | 2 +- Renci.SshClient/Renci.SshNet/ScpClient.cs | 6 +- .../Renci.SshNet/Security/KeyExchange.cs | 12 ++++ .../Security/KeyExchangeDiffieHellman.cs | 2 + .../KeyExchangeDiffieHellmanGroup14Sha1.cs | 2 +- .../KeyExchangeDiffieHellmanGroup1Sha1.cs | 4 +- ...yExchangeDiffieHellmanGroupExchangeSha1.cs | 4 +- ...xchangeDiffieHellmanGroupExchangeSha256.cs | 6 +- Renci.SshClient/Renci.SshNet/Session.cs | 17 +++++ .../Renci.SshNet/Sftp/SftpSession.cs | 22 ++++++- Renci.SshClient/Renci.SshNet/Shell.cs | 2 +- .../Renci.SshNet/SubsystemSession.cs | 6 +- 32 files changed, 165 insertions(+), 74 deletions(-) create mode 100644 Renci.SshClient/Renci.SshNet/Messages/Transport/IKeyExchangedAllowed.cs diff --git a/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj b/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj index bc428036..cb82c558 100644 --- a/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj +++ b/Renci.SshClient/Renci.SshNet.NET35/Renci.SshNet.NET35.csproj @@ -409,6 +409,9 @@ Messages\Transport\IgnoreMessage.cs + + Messages\Transport\IKeyExchangedAllowed.cs + Messages\Transport\KeyExchangeDhGroupExchangeGroup.cs @@ -752,7 +755,7 @@ - +