Commit Graph

  • 465451985a KEX with Elliptic Curves ecdh-sha2-nistp{256,384,521} Stefan Rinkes 2018-12-01 08:04:00 +01:00
  • 2fe968ba7c Import Chaos.NaCl for ED25519 and Curve25519 Stefan Rinkes 2018-12-04 21:21:12 +01:00
  • d24fe2006f Import minimalistic BouncyCastle for ECDH Stefan Rinkes 2018-12-04 21:20:51 +01:00
  • bd01d97179 Use pack consistently. Formatting. Gert Driesen 2018-07-30 21:58:04 +02:00
  • 07e142c1b1 SOCK4: search all host addresses for the first IPv4 address. Gert Driesen 2018-07-30 21:57:14 +02:00
  • cfd412529e Use switch instead of if/elseif. Gert Driesen 2018-07-30 21:34:59 +02:00
  • adeeb8c231 Minor refactoring of our SOCKS client support. Use big endian format for port number. Fixes #447. Gert Driesen 2018-07-29 22:15:48 +02:00
  • 7b43bdcce9 Added Read(Socket socket, int size, TimeSpan timeout) method. Gert Driesen 2018-07-29 21:50:48 +02:00
  • 4f5aaec882 Remove unused fields. Gert Driesen 2018-07-29 21:46:55 +02:00
  • 198162d193 Use Pack.BigEndianToUInt16. Gert Driesen 2018-07-29 21:46:35 +02:00
  • 043b78bac9 Simplify names in crefs. Gert Driesen 2018-07-28 22:15:13 +02:00
  • 13bef36d38 Minor code cleanup. Gert Driesen 2018-07-22 21:15:29 +02:00
  • cbefe876dd Remove duplicate base class. Gert Driesen 2018-07-22 21:15:03 +02:00
  • 031f0a164b Fix name of argument in ArgumentOutOfRangeException thrown in OperationTimeout. Added tests for OperationTimeout. Gert Driesen 2018-07-22 21:14:32 +02:00
  • 660b075c79 Added more tests for issue #338. Gert Driesen 2018-07-22 21:12:32 +02:00
  • 7932ba7618 Remove unused imports. Gert Driesen 2018-07-21 12:56:56 +02:00
  • 6a017aef73 Minor code style & naming changes. Gert Driesen 2018-07-21 12:56:22 +02:00
  • e75ab4a23c Added Decrypt test. Gert Driesen 2018-07-21 12:43:19 +02:00
  • de06f4555e Fix flaky test. Gert Driesen 2018-07-21 12:31:17 +02:00
  • 5941626615 Document TryWait overloads, and WaitResult enumeration. Gert Driesen 2018-07-21 10:39:52 +02:00
  • 6183f6d608 Add IUTF8 terminal mode. Gert Driesen 2018-07-21 10:38:53 +02:00
  • 7691cb0b55 Avoid leaking event subscriptions when an exception is thrown during initialization of ShellStream. Handle error situations when initializing ShellStream. Gert Driesen 2017-11-27 22:24:55 +01:00
  • 69882b39f9 Remove unused import. Gert Driesen 2017-11-27 22:20:19 +01:00
  • 3e304ea7e7 * Add TryWait overloads to (I)Session that return the result of the wait instead of throwing an exception. * Introduce a ChannelCloseTimeout property on ConnectionInfo that allows you to control how long you want to wait for the server to send a SSH_MSG_CHANNEL_CLOSE. The default value is 1 second. * Use the newly introduced TryWait on Session with ChannelCloseTimeout as timeout in Channel to avoid throwing an exception when the server does not send a SSH_MSG_CHANNEL_CLOSE. Fixes #335. * Removed unused WaitHandle from Channel. Gert Driesen 2017-11-27 22:20:05 +01:00
  • 66471e6741 When the request to open a subsystem fails, close the channel session and throw a SshException. Fixes #308. Gert Driesen 2017-11-15 21:50:49 +01:00
  • 7cecd861f3 Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop Gert Driesen 2017-11-11 19:47:08 +01:00
  • 8141113259 Only keep reference to session if the connection was established successfully. Fixes issue #338. Gert Driesen 2017-11-11 19:20:03 +01:00
  • 43047b11b5 Merge pull request #333 from sshnet/netstandard20 Gert Driesen 2017-11-05 15:33:16 +01:00
  • 66dcb0bfcb Ensure keep-alive timer is created when KeepAliveInterval is set after the connection has been established. Fixes issue #334. Gert Driesen 2017-11-05 15:30:51 +01:00
  • 8156b625f7 Build .NET Standard 2.0 assembly. Remove seperate build script. Gert Driesen 2017-10-30 18:26:55 +01:00
  • e443594a29 Prepare for 2017.0.0 beta1. Gert Driesen 2017-10-30 18:02:56 +01:00
  • 2c461bbfb2 Use new csproj format introduced in VS 2017. Added support for .NET Standard 2.0. Gert Driesen 2017-10-30 12:39:24 +01:00
  • 25bb64fde9 Avoid using Result and Wait() on Task<T>. Gert Driesen 2017-10-30 12:20:41 +01:00
  • 95f0f22cbf Merge pull request #320 from sshnet/channel_closed Gert Driesen 2017-10-16 21:29:37 +02:00
  • 0f08b8502a Prepare for 2016.1.0 RTW. Gert Driesen 2017-10-15 11:46:10 +02:00
  • 8ea1237bbe Merge remote-tracking branch 'refs/remotes/origin/develop' Gert Driesen 2017-10-15 11:18:25 +02:00
  • 93555c95da Remove a trailing CWL. Gert Driesen 2017-10-12 22:05:37 +02:00
  • f854227c0d Raise the Closed event as part the Close() method to: * ensure the channel is closed at both ends before we raise this event * ensure we raise the event before the channel is disposed Gert Driesen 2017-10-12 21:59:37 +02:00
  • 19167e7c80 Fix links 2016.1.0 Gert Driesen 2017-10-09 19:33:00 +02:00
  • 5d664bd667 Include NuGet download count Gert Driesen 2017-10-09 19:30:25 +02:00
  • d58e96dc13 Merge remote-tracking branch 'refs/remotes/origin/master' into develop Gert Driesen 2017-10-07 15:48:17 +02:00
  • 7e80645f2e Merge branch 'master' of https://github.com/sshnet/SSH.NET 2016.1.0-beta4 Gert Driesen 2017-10-07 15:46:15 +02:00
  • 6445546b70 Merge remote-tracking branch 'refs/remotes/origin/develop' Gert Driesen 2017-10-07 15:45:54 +02:00
  • 47aafb1347 Merge pull request #315 from sshnet/develop Gert Driesen 2017-10-07 15:43:01 +02:00
  • 7a19bcd81e Prepare for 2016.1.0-beta4. Gert Driesen 2017-10-07 15:39:39 +02:00
  • 292c0e46b2 Sync .NET 3.5 test project. Gert Driesen 2017-10-07 09:30:12 +02:00
  • 16004effcc Add support for partial success limit to prevent stack overflow on badly behaving servers Gert Driesen 2017-10-05 22:02:15 +02:00
  • c2e1de507d Improve tests for partial success limit. Gert Driesen 2017-10-05 21:44:32 +02:00
  • 14b654d0ab Introduce a partial success limit. Added first batch of tests. Gert Driesen 2017-10-04 22:07:04 +02:00
  • 9e5ed683fe Remove empty line. Gert Driesen 2017-10-04 22:04:06 +02:00
  • e04e0129cd Added partialSuccessLimit argument to ClientAuthentication ctor. Gert Driesen 2017-10-02 22:10:20 +02:00
  • 69fb3be4fa Signal the closed wait handle to avoid a deadlock when a subscriber to the Closed event in turn closes or disposes the channel. Gert Driesen 2017-09-30 21:42:56 +02:00
  • a6f5d3580a Fix warnings. Gert Driesen 2017-09-27 21:46:05 +02:00
  • 1eac7d89da Fix typos. Gert Driesen 2017-09-27 21:38:30 +02:00
  • e78350977e Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop Gert Driesen 2017-09-26 21:57:45 +02:00
  • 79c0f90db3 Modify our DH kex to generate a private component that is twice the size of the hash that a given algorithm produces, with a minimum of 1024 bits. Fixes issue #304. Gert Driesen 2017-09-26 21:57:37 +02:00
  • b5d07629e8 Document exception for SendMessage. Gert Driesen 2017-09-24 11:49:41 +02:00
  • 3b23d11c8a Mark ChannelSession sealed, and added doc for SendChannelOpenMessage(). Gert Driesen 2017-09-24 11:35:27 +02:00
  • cdf50d2a37 Merge remote-tracking branch 'refs/remotes/origin/develop' 2016.1.0-beta3 Gert Driesen 2017-09-20 21:02:14 +02:00
  • c71d7f6aa5 Merge remote-tracking branch 'refs/remotes/origin/master' into develop Gert Driesen 2017-09-20 21:01:42 +02:00
  • a353f95ebf Ensure read buffer is large enough. Gert Driesen 2017-09-17 18:05:37 +02:00
  • c3d43b67ec Pass buffer size to ShellStream ctor. Fixes issue #303. Gert Driesen 2017-09-17 17:34:37 +02:00
  • 985e3f3703 Merge pull request #211 from JasonQG/patch-1 Gert Driesen 2017-09-17 13:14:14 +02:00
  • e9eaf65543 Add more documentation. Harden and improve test. Gert Driesen 2017-09-16 02:10:20 +02:00
  • 204d00c95c Raise Closed event before invocing Close() to make sure we do not raise this event after we finished disposing. Gert Driesen 2017-09-16 02:08:15 +02:00
  • 80ae79ca4c Avoid overlapping SSH_FXP_OPEN and SSH_FXP_LSTAT requests for the same file as this causes a performance degradation on Sun SSH. Switch to a single (sync) read-ahead if the file size is known, and we're starting to read (ahead) past that file size. Harden against exceptions closing the file handle in Dispose Gert Driesen 2017-09-15 23:43:29 +02:00
  • a7dbfbc1ef Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop Gert Driesen 2017-09-11 21:53:10 +02:00
  • 698ee15425 Please our mock tests. Gert Driesen 2017-09-11 21:02:19 +02:00
  • d681e915f5 Sync conditional compilation symbols. Gert Driesen 2017-09-10 21:26:55 +02:00
  • 25275ffe57 Rename const. Gert Driesen 2017-09-10 21:07:18 +02:00
  • 37bfb7c0c8 Remove usage of Linq. Gert Driesen 2017-09-10 21:03:55 +02:00
  • d90f16f720 set FEATURE_SOCKET_DISPOSE and FEATURE_WAITHANDLE_DISPOSE. Gert Driesen 2017-09-10 20:56:21 +02:00
  • f8e1b8029a Added more remote path transformation tests. Gert Driesen 2017-09-10 20:55:48 +02:00
  • b0db16bfdf Remove ExtensionsTest_ShellQuote.cs. Gert Driesen 2017-09-10 20:55:08 +02:00
  • 03644f00af Change AuthenticationMethod.AllowedAuthentications from IList<string> to string[]. Remove usage of Linq. Gert Driesen 2017-09-10 20:54:14 +02:00
  • 0e083cfe60 Move Extensions to Renci.SshNet.Common namespace. Moved Dispose(this Socket socket) and Dispose(this WaitHandle handle) to Extensions.cs. Gert Driesen 2017-09-10 20:30:25 +02:00
  • f08d7a61f1 Cleanup code. Gert Driesen 2017-09-10 20:20:59 +02:00
  • cde333185c Introduce extensible remote path quoting mechanism Gert Driesen 2017-09-09 20:27:53 +02:00
  • 82634b4662 Expose WaitHandle. Gert Driesen 2017-09-09 19:34:19 +02:00
  • 05e82b1813 Added tests for remote path transformations. Added tests for PosixPath. Gert Driesen 2017-09-09 14:42:11 +02:00
  • f4b0bb22b7 Merge branch 'scp-quoting' of https://github.com/sshnet/SSH.NET into scp-quoting Gert Driesen 2017-09-09 14:13:39 +02:00
  • 55d9109276 Attempt to harden test. Gert Driesen 2017-09-09 14:13:33 +02:00
  • 5852a96d02 Fix typo. Gert Driesen 2017-09-09 13:44:15 +02:00
  • 4e9ceadfd3 Add example for host key validation. Gert Driesen 2017-09-09 13:35:53 +02:00
  • 9e75eef572 Remove unused fields. Gert Driesen 2017-09-05 21:35:13 +02:00
  • e421e16e29 Sync "legacy" project files for new sources introduced as part of PR #290. Gert Driesen 2017-09-05 21:34:57 +02:00
  • e434f97be5 Renamed Quote transformation and corresponding class to ShellQuote. Added DoubleQuote transformation. Modified default remote path transformation for ScpClient to DoubleQuote. Gert Driesen 2017-09-04 18:45:23 +02:00
  • 7dde512a9c Add a RemotePathTransformation property to ScpClient that can be used to control if and how a remote path should be transformed before passed on to the scp command. Gert Driesen 2017-08-27 18:48:51 +02:00
  • 5128b16778 Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop Gert Driesen 2017-08-27 16:20:19 +02:00
  • 0e2d0dc25d Sync project file. Gert Driesen 2017-08-27 16:19:59 +02:00
  • 127e3f6591 Throw an SshException when SCP request is rejected by the remote host. Gert Driesen 2017-08-27 16:15:49 +02:00
  • 9df22e349f Move UploadTime to ScpClient.NET.cs, and sync legacy project files. Gert Driesen 2017-08-27 09:29:37 +02:00
  • 266dbaefe6 Pass full remote file path to scp command when uploading or downloading a file, and use zero-length pass in C directive. Combined, this ensure the SCP server will reject a remote file path that points to a directory. Gert Driesen 2017-08-27 08:59:26 +02:00
  • 0f6bc56b4a Throw an SshException when SCP request is rejected by the remote host. Gert Driesen 2017-08-27 16:15:49 +02:00
  • 4a031e08ce Merge pull request #288 from sshnet/issue286 Gert Driesen 2017-08-27 14:18:21 +02:00
  • 84f3a28018 Move UploadTime to ScpClient.NET.cs, and sync legacy project files. Gert Driesen 2017-08-27 09:29:37 +02:00
  • b70e21801e Pass full remote file path to scp command when uploading or downloading a file, and use zero-length pass in C directive. Combined, this ensure the SCP server will reject a remote file path that points to a directory. Gert Driesen 2017-08-27 08:59:26 +02:00
  • 2d840aab35 Update tests after quoting fixes. Gert Driesen 2017-08-22 19:50:15 +02:00
  • 6184a0e826 ScpClient: Implement proper quoting of paths. Fixes issue #256. Gert Driesen 2017-08-22 19:14:44 +02:00
  • 522ed129b2 Fix SL and WP compile. Gert Driesen 2017-08-22 18:32:57 +02:00