Commit Graph

  • dae0eb761d Make it more clear that the local window size is related to the packet size. Gert Driesen 2014-03-31 17:37:29 +00:00
  • c1fec4b7a4 Add support for generating help doc. Gert Driesen 2014-03-23 19:26:55 +00:00
  • 870bedfe55 Move all shared assembly-level attribute to CommonAssemblyInfo.cs. Gert Driesen 2014-03-23 19:05:57 +00:00
  • fc490c0fa7 Added ClientChannel, ServerChannel and ChannelOpenConfirmedEventArgs source files, and do not emit debug symbols in release configuration. Gert Driesen 2014-03-23 18:19:05 +00:00
  • 12b3793582 Use batching to simplify build script. Gert Driesen 2014-03-23 09:15:36 +00:00
  • 1b83ffb5a9 Document few more fixed, and correct typo. Gert Driesen 2014-03-23 09:14:45 +00:00
  • d68fde30fe Fixed another reference in XML doc. Gert Driesen 2014-03-23 09:13:32 +00:00
  • 22d44348f5 Fixed reference in XML doc. Gert Driesen 2014-03-23 09:12:24 +00:00
  • 3384a7d806 Fix compile on .NET 3.5 Gert Driesen 2014-03-23 09:09:20 +00:00
  • 397640ef10 Issue #1930: No connection possible with the same auth method requested multiple times. Improve exception message for authentication failures. Gert Driesen 2014-03-22 18:03:09 +00:00
  • 2ddb3df0e0 * Introduce ClientChannel and ServerChannel classes to distinguish between channel initiated by the client or the server. * Increase maximum SSH packet size to 68536 bytes (64 KB + 3000 bytes). * Increase local window size to 2 MB. * Increase local maximum packet size from 32 KB to 64 KB. * Modify Channel to save remote channel info (packet size, window size and channel number); distinguish between local and remote packet size. * Expose channel in SubsystemSession to allow SftpSession to access local and remote maximum packet size for calculation of optimal read and write (buffer) length. * Move verification of maximum data payload to send to Channel.SendMessage and verify data length against remote packet size. * Limit size of payload to send to peer to RemotePacketSize in ChannelForwardedTcpip and ChannelDirectTcpip. * Disable debug symbols when building in Release configuration. Gert Driesen 2014-03-22 15:06:44 +00:00
  • 24fc04934f Fixed reference in XML doc. Gert Driesen 2014-03-22 09:30:51 +00:00
  • a11518fe93 Large improvement of throughput for DownloadFile by taking into account of the SSH_FXP_DATA header info for determining the length of the data we request in each response message. This eliminates an extra SSH_MSG_CHANNEL_DATA message for each SSH_FXP_DATA. Gert Driesen 2014-03-13 20:55:23 +00:00
  • cb7d2b6bd1 Avoid race conditions signaling events. Update release notes with new fixes. Gert Driesen 2014-03-13 20:27:40 +00:00
  • e630397c66 Use server decryption algorithm instead of client encryption algorithm to decrypt server message. Fixes issue #1917. Gert Driesen 2014-03-11 19:25:38 +00:00
  • 34405caa24 BaseClient: * Added bool argument to BaseClient ctor to indicate whether the specified ConnectionInfo instance is owned by the client. * In Dispose, also dispose ConnectionInfo if ownsConnectionInfo is true. * Modified Connect() to throw InvalidOperationException when the client is already connected. * Postpone creation of keep-alive timer until client has actually connected, and stop timer when disconnecting the client. * Document default value of KeepAliveInterval. * Modified all public members to throw ObjectDisposedException when client is disposed. * Modified Dispose to stop the keep-alive timer (and wait until all timer callbacks have been executed) before the session is disposed. Gert Driesen 2014-03-10 20:13:44 +00:00
  • 07d575e78a Avoid race conditions when signaling events or setting waithandles. Remove empty lines. Fixed event handler leak for Closed event on Channel. Gert Driesen 2014-03-10 17:31:15 +00:00
  • bbd5e2f6bb Document default values of ConnectionInfo class. Gert Driesen 2014-03-10 17:25:18 +00:00
  • 03b63e248c Fixed typo in comments, use var where possible. Change visibility of _channelEof to private. Remove empty lines. Gert Driesen 2014-03-10 17:13:05 +00:00
  • 98549ed087 Avoid NRE setting EventWaitHandle. Remove emty lines. Gert Driesen 2014-03-10 17:02:04 +00:00
  • bbf44be46a Avoid race conditions when signaling events. Gert Driesen 2014-03-10 16:10:59 +00:00
  • 108b20965c Rename WaitHandle method to WaitOnHandle to avoid naming clash with WaitHandle class. Gert Driesen 2014-03-10 15:14:49 +00:00
  • 6a68a5f22b Remove extra ToArray call. Gert Driesen 2014-03-10 14:41:21 +00:00
  • 83e2067751 Issue #1918: Connection dropped by server due to invalid DSA signature Pad each part of signature with zero's until its 20 bytes. Signature should be exactly 40 bytes. Gert Driesen 2014-03-10 13:48:32 +00:00
  • cd640aa1cd Fix compiler and (correct) resharper warnings across the solution. Gert Driesen 2014-03-04 18:30:43 +00:00
  • 7834d4ab59 Add build scripts and related artifacts to solution. Gert Driesen 2014-03-02 09:46:49 +00:00
  • 7946cddf69 Use the same assembly name across all supported target frameworks. Gert Driesen 2014-03-02 09:44:19 +00:00
  • 53de0a237e Added build script which by default: * cleans the build output * compiles the solution in Release configuration * creates a NuGet package containing our assembly for all supported target frameworks Gert Driesen 2014-03-02 09:43:51 +00:00
  • 65c0412ad3 Sign the assemblies for .NET 3.5, .NET 4.0, Silverlight 4 and Silverlight 5. Gert Driesen 2014-03-02 09:24:32 +00:00
  • 8bea7cb388 Skip headers (and message body if Content-Length headers is set) returned by HTTP proxy. Fail fast when proxy does not return HTTP 200. Added corresponding regression tests. Fixes the following issues: 1601, 1890 and 1905. Gert Driesen 2014-03-01 10:59:08 +00:00
  • 1c35970820 Correct casing of Security/Cryptography/HMAC.cs. Fixes issue #1505. Gert Driesen 2014-02-23 19:18:01 +00:00
  • 9f97b90c41 * Allow a private key to be read from a file which is already open, but which allows read access. This allows multiple connections to use the same private key file concurrently. * Added tests for PrivateKeyFile, and fix all failing tests. * Add private keys also as embedded resources to test project for .NET 3.5. Gert Driesen 2014-02-15 19:19:49 +00:00
  • a077321505 Remove Test project from solution as its a local project which is only used by Oleg. Gert Driesen 2014-02-11 20:07:36 +00:00
  • 2a4299eca5 Enable source control binding for all projects. Gert Driesen 2014-02-11 20:06:23 +00:00
  • c811a88c90 Modify Renci.SshNet.WindowsPhone project to target WP 7.1 again instead of 8.0. The upgrade of the solution and project files to VS 2013 caused this regression. Gert Driesen 2014-02-11 19:57:51 +00:00
  • 117e079011 Fix build when targeting .NET Framework 3.5 as Func only supports covariance on .NET Framework 4.0 and higher. Gert Driesen 2014-02-11 19:52:38 +00:00
  • af3fc6b404 Handle Event Handle leak per issue #1761 olegkap_cp 2013-11-01 15:52:13 +00:00
  • f4141de4c9 Upgrade solution to VS.NET 2013 Apply patch 15311 - Fixes permission denied on their private key file. Apply patch 15015 - Fixes the scp operations that are based upon streams. Apply patch 15346 - Change socket to SocketOptionLevel.Tcp per microsoft documentation olegkap_cp 2013-11-01 15:43:33 +00:00
  • c7d162111b Apply patch 14803 olegkap_cp 2013-07-10 14:09:21 +00:00
  • 9848c741eb Fix "OverflowException on empty server response" for silverlight olegkap_cp 2013-07-10 13:37:16 +00:00
  • b6eb090ed0 Fix PKCS7Padding padding olegkap_cp 2013-07-10 13:31:07 +00:00
  • 61f3adbb8b Fix ConnectHttp method to exit in HttpStatusCode.OK olegkap_cp 2013-07-10 13:22:19 +00:00
  • 02561a21fa Fix "Incorrect check for timeout values" in ShellStream olegkap_cp 2013-07-10 13:07:45 +00:00
  • 4d2b723bcd Apply patches 14800 and 14801 olegkap_cp 2013-07-10 13:05:29 +00:00
  • 3af40a0f83 Apply 14339 patch olegkap_cp 2013-07-10 12:32:16 +00:00
  • 796883e229 Update version number olegkap_cp 2013-04-06 17:41:50 +00:00
  • e189418a5b Improve thread-safe event handling Replace Task.Factory.StartNew with ThreadPool.QueueUserWorkItem olegkap_cp 2013-04-04 15:33:47 +00:00
  • 908c22cc93 Fix SshAuthenticationException by handling PartialSuccess response and continue authentication proccess in that case olegkap_cp 2013-04-02 00:48:38 +00:00
  • f6480f1fff Fix thread synchronization issue when uploading files using SCP olegkap_cp 2013-03-27 17:34:59 +00:00
  • badcf4052c Fix and remove orphan threads when using port forwarding. olegkap_cp 2013-03-07 21:35:37 +00:00
  • 6c761cf491 Replace previouse fix with Connection test vs if disposed olegkap_cp 2013-03-07 16:40:29 +00:00
  • c72ac9c42f Dont call Channel Close() during dispose phase olegkap_cp 2013-03-07 16:36:50 +00:00
  • b04d660cd6 Fix differnt SCP Upload issue. Remove not SCP feature of creating directory structure for uploaded files or directories olegkap_cp 2013-03-07 16:14:36 +00:00
  • 4df7a2849b Lock _incoming object where performing Enqueue Rollback previouse commit olegkap_cp 2013-03-02 14:37:53 +00:00
  • d0c028a938 Lock _encoding in ShellStream when GetString operation is performed olegkap_cp 2013-03-02 14:29:40 +00:00
  • 2825e44f45 Improve HTTP proxy error handling, regarding issue #1509 Apply 13964 patch to improve handling of multiple authentication methods olegkap_cp 2013-03-02 13:57:32 +00:00
  • 6dc8840e45 Commiting files that were not commited on previous commit olegkap_cp 2013-02-07 20:00:07 +00:00
  • 8934b5d156 Improve internal server window size managment Fix exception handeling when multiple threads share one channel that can caus application hanging Improve cipher perfomance Other fixes olegkap_cp 2013-02-07 19:47:47 +00:00
  • 759aa4c9ee Improve SftpClient Exists method olegkap_cp 2013-02-02 22:39:46 +00:00
  • 0434c54ef1 Fix problem when huge files could be cut off in the middle olegkap_cp 2013-02-02 21:16:30 +00:00
  • e1b2d13a99 Fix SCP to handle root path olegkap_cp 2013-02-02 15:41:52 +00:00
  • 19802b6553 Add IPAddress as parameter to ForwardedPortRemote Allow all projects to generate xml documentation files Add GetIPAddress method and other minor refactoring olegkap_cp 2013-01-31 04:45:14 +00:00
  • 29f641ba61 Update Assmbly information to version 2013.1.27 olegkap_cp 2013-01-27 01:22:45 +00:00
  • fd428dd617 Fix some tests Update all projects to generate xml documentation file Cross project fixes to make it compilable for all projects olegkap_cp 2013-01-27 01:13:53 +00:00
  • d31b4c76e1 Fix how exceptions are thrown Fix exception being thrown for asynchronous multiple SFTP file download Add additional helper BeginDownloadFile and BeginUploadFile methods olegkap_cp 2013-01-26 14:01:35 +00:00
  • 7f52ff7dee Ensure all forwarded ports are removed when client disconects so it could be reused later olegkap_cp 2013-01-25 23:30:23 +00:00
  • b2015d4b2d Fix SftpFileStream corrupting data on upload olegkap_cp 2013-01-25 01:11:28 +00:00
  • 4276e4b8e6 Fix ScpClient upload to allow path to include subdirectories olegkap_cp 2013-01-24 22:39:27 +00:00
  • 4dd65b5b9f Update AssmeblyInformation olegkap_cp 2013-01-24 04:20:48 +00:00
  • 2d769888f5 Add missing files to linked projects olegkap_cp 2013-01-23 14:46:17 +00:00
  • 89a6083eda Refactor HMAC Add SHA512Hash, SHA384Hash classes for future hash support olegkap_cp 2013-01-23 13:50:13 +00:00
  • 3bf76ef842 Add HashInfo class and refactor hashing works Fix *-96 hashing algorithms olegkap_cp 2013-01-22 13:36:54 +00:00
  • 95abd4557b Fix Expect method Improve BeginExpect to be implemented similar to other asynch methods olegkap_cp 2013-01-21 12:56:54 +00:00
  • db38a04f8a Add Encoding property to ConnectionInfo to specify what encoding to use for current session. Fix encoding for command execution, SCP and SFTP to allow usage of file names in different encodings olegkap_cp 2013-01-21 02:56:41 +00:00
  • c62571a059 Remove some test code from previouse commit olegkap_cp 2013-01-20 15:23:42 +00:00
  • ff2d8b3f52 Add support for hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 olegkap_cp 2013-01-20 04:47:18 +00:00
  • eba904b54e Add IsUploadCanceled and IsDownloadCanceled properties to allow cancelation of long running operations olegkap_cp 2013-01-20 00:51:02 +00:00
  • 111fd3e052 Add support for twofish cipher olegkap_cp 2013-01-20 00:12:11 +00:00
  • affc93e4f0 Connectivity check fix from previouse commit olegkap_cp 2013-01-19 04:07:41 +00:00
  • 95eeb107a0 Remove EnsureConnection and move its funcionality into Session.SendMessage method olegkap_cp 2013-01-19 03:56:35 +00:00
  • bc4e66139b Improve IsSocketConnected test olegkap_cp 2013-01-18 17:52:57 +00:00
  • f1e82058e5 Ensure Channel Close message is sent only once PortForwarding improvments olegkap_cp 2013-01-17 02:34:55 +00:00
  • c46ceaf34b Add support for arcfour cipher and hmac-ripemd160 algorithms Refactor cipher to allow support of stream ciphers for encryption/decryption olegkap_cp 2013-01-10 17:00:12 +00:00
  • 2d0286b380 Throw ObjectDisposedException exception when trying to use ShellStream that was already disposed olegkap_cp 2013-01-10 15:22:22 +00:00
  • 39e30765c1 Fix SCP hanging when downloading single file into directory olegkap_cp 2013-01-10 14:28:53 +00:00
  • 7290fdd514 Remove unused static references olegkap_cp 2013-01-10 02:08:17 +00:00
  • 74f78740a4 Remove files that not in use olegkap_cp 2013-01-09 13:52:38 +00:00
  • c856a71a7f Add NUGET package file to the project olegkap_cp 2013-01-08 17:59:15 +00:00
  • 7065c344b3 Refactor some tests olegkap_cp 2013-01-08 17:34:39 +00:00
  • 8e64b8f21b Ensure Queue.Dequeue operation is called only when data still availalbe in queue olegkap_cp 2013-01-08 16:15:45 +00:00
  • b629a4f344 Remove delete files olegkap_cp 2013-01-08 16:07:12 +00:00
  • 6d2604948d Remove documention content and move code examples into test and code comments olegkap_cp 2013-01-08 15:46:14 +00:00
  • 358b08905f Fix and add XML comments olegkap_cp 2013-01-07 18:41:10 +00:00
  • 807259a016 Apply 13574 patch olegkap_cp 2013-01-07 14:28:50 +00:00
  • 38b016236e Add few examples into code comments Fix some XML comments Add test placeholders to implement in the future olegkap_cp 2013-01-07 01:05:17 +00:00
  • b6c7336d0b Fix to handle channel closed message by SubsystemSession class olegkap_cp 2013-01-04 13:53:16 +00:00
  • 09e8d2d7aa Fix synchroization issue in ShellStream reading olegkap_cp 2013-01-03 23:51:19 +00:00
  • 2c424f6256 Refactor ShellStream to add BeginExpect Fix Shell support in Silverlight and WindowsPhone applications olegkap_cp 2013-01-03 22:12:32 +00:00
  • a9a006e220 Add ability to specify terminal modes for Shell terminal Example: using (var ssh = new SshClient(connectionInfo)) { ssh.Connect(); var output = Console.OpenStandardOutput(); var input = Console.OpenStandardInput(); var terminalModes = new Dictionary<TerminalModes, uint>(); terminalModes.Add(TerminalModes.ECHO, 0); terminalModes.Add(TerminalModes.VERASE, 0x7F); terminalModes.Add(TerminalModes.TTY_OP_ISPEED, 0x9600); terminalModes.Add(TerminalModes.TTY_OP_OSPEED, 0x9600); olegkap_cp 2013-01-03 20:04:14 +00:00
  • 2efef57b52 Fix SocketReadLine for Silverlight version to support multiple lines Improve IsSocketConnected to determine wheither client is connected or not olegkap_cp 2013-01-03 18:52:00 +00:00