Gert Driesen
8141113259
Only keep reference to session if the connection was established successfully.
...
Fixes issue #338 .
2017-11-11 19:20:03 +01:00
Gert Driesen
43047b11b5
Merge pull request #333 from sshnet/netstandard20
...
Add support for .NET Standard 2.0
2017-11-05 15:33:16 +01:00
Gert Driesen
66dcb0bfcb
Ensure keep-alive timer is created when KeepAliveInterval is set after the connection has been established.
...
Fixes issue #334 .
2017-11-05 15:30:51 +01:00
Gert Driesen
8156b625f7
Build .NET Standard 2.0 assembly.
...
Remove seperate build script.
2017-10-30 18:26:55 +01:00
Gert Driesen
e443594a29
Prepare for 2017.0.0 beta1.
2017-10-30 18:02:56 +01:00
Gert Driesen
2c461bbfb2
Use new csproj format introduced in VS 2017.
...
Added support for .NET Standard 2.0.
2017-10-30 12:39:24 +01:00
Gert Driesen
25bb64fde9
Avoid using Result and Wait() on Task<T>.
2017-10-30 12:20:41 +01:00
Gert Driesen
0f08b8502a
Prepare for 2016.1.0 RTW.
2017-10-15 11:46:10 +02:00
Gert Driesen
93555c95da
Remove a trailing CWL.
2017-10-12 22:05:37 +02:00
Gert Driesen
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
Fixes issue #319 .
2017-10-12 21:59:37 +02:00
Gert Driesen
7a19bcd81e
Prepare for 2016.1.0-beta4.
2017-10-07 15:39:39 +02:00
Gert Driesen
292c0e46b2
Sync .NET 3.5 test project.
2017-10-07 09:30:12 +02:00
Gert Driesen
c2e1de507d
Improve tests for partial success limit.
2017-10-05 21:44:32 +02:00
Gert Driesen
14b654d0ab
Introduce a partial success limit.
...
Added first batch of tests.
2017-10-04 22:07:04 +02:00
Gert Driesen
9e5ed683fe
Remove empty line.
2017-10-04 22:04:06 +02:00
Gert Driesen
e04e0129cd
Added partialSuccessLimit argument to ClientAuthentication ctor.
2017-10-02 22:10:20 +02:00
Gert Driesen
69fb3be4fa
Signal the closed wait handle to avoid a deadlock when a subscriber to the Closed event in turn closes or disposes the channel.
2017-09-30 21:42:56 +02:00
Gert Driesen
a6f5d3580a
Fix warnings.
2017-09-27 21:46:05 +02:00
Gert Driesen
1eac7d89da
Fix typos.
2017-09-27 21:38:30 +02:00
Gert Driesen
e78350977e
Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop
2017-09-26 21:57:45 +02:00
Gert Driesen
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 .
Avoid using TryParse in diffie-hellman-group1-sha1 and diffie-hellman-group14-sha1.
Improve test coverage.
2017-09-26 21:57:37 +02:00
Gert Driesen
b5d07629e8
Document exception for SendMessage.
2017-09-24 11:49:41 +02:00
Gert Driesen
3b23d11c8a
Mark ChannelSession sealed, and added doc for SendChannelOpenMessage().
2017-09-24 11:35:27 +02:00
Gert Driesen
c71d7f6aa5
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# build/nuget/SSH.NET.nuspec
# src/Renci.SshNet/Properties/CommonAssemblyInfo.cs
2017-09-20 21:01:42 +02:00
Gert Driesen
a353f95ebf
Ensure read buffer is large enough.
2017-09-17 18:05:37 +02:00
Gert Driesen
c3d43b67ec
Pass buffer size to ShellStream ctor.
...
Fixes issue #303 .
Added tests for issue #303 and PR #211 .
2017-09-17 17:34:37 +02:00
Gert Driesen
985e3f3703
Merge pull request #211 from JasonQG/patch-1
...
Fix bytes sent being skipped
2017-09-17 13:14:14 +02:00
Gert Driesen
e9eaf65543
Add more documentation.
...
Harden and improve test.
2017-09-16 02:10:20 +02:00
Gert Driesen
204d00c95c
Raise Closed event before invocing Close() to make sure we do not raise this event after we finished disposing.
2017-09-16 02:08:15 +02:00
Gert Driesen
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
Fixes issue #292 .
2017-09-15 23:43:29 +02:00
Gert Driesen
a7dbfbc1ef
Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop
2017-09-11 21:53:10 +02:00
Gert Driesen
698ee15425
Please our mock tests.
2017-09-11 21:02:19 +02:00
Gert Driesen
d681e915f5
Sync conditional compilation symbols.
2017-09-10 21:26:55 +02:00
Gert Driesen
25275ffe57
Rename const.
2017-09-10 21:07:18 +02:00
Gert Driesen
37bfb7c0c8
Remove usage of Linq.
2017-09-10 21:05:14 +02:00
Gert Driesen
d90f16f720
set FEATURE_SOCKET_DISPOSE and FEATURE_WAITHANDLE_DISPOSE.
2017-09-10 20:56:21 +02:00
Gert Driesen
f8e1b8029a
Added more remote path transformation tests.
2017-09-10 20:55:48 +02:00
Gert Driesen
b0db16bfdf
Remove ExtensionsTest_ShellQuote.cs.
2017-09-10 20:55:08 +02:00
Gert Driesen
03644f00af
Change AuthenticationMethod.AllowedAuthentications from IList<string> to string[].
...
Remove usage of Linq.
2017-09-10 20:54:14 +02:00
Gert Driesen
0e083cfe60
Move Extensions to Renci.SshNet.Common namespace.
...
Moved Dispose(this Socket socket) and Dispose(this WaitHandle handle) to Extensions.cs.
2017-09-10 20:33:27 +02:00
Gert Driesen
f08d7a61f1
Cleanup code.
2017-09-10 20:22:40 +02:00
Gert Driesen
82634b4662
Expose WaitHandle.
2017-09-09 19:34:19 +02:00
Gert Driesen
05e82b1813
Added tests for remote path transformations.
...
Added tests for PosixPath.
2017-09-09 14:42:11 +02:00
Gert Driesen
f4b0bb22b7
Merge branch 'scp-quoting' of https://github.com/sshnet/SSH.NET into scp-quoting
2017-09-09 14:13:39 +02:00
Gert Driesen
55d9109276
Attempt to harden test.
2017-09-09 14:13:33 +02:00
Gert Driesen
9e75eef572
Remove unused fields.
2017-09-05 21:35:13 +02:00
Gert Driesen
e421e16e29
Sync "legacy" project files for new sources introduced as part of PR #290 .
2017-09-05 21:34:57 +02:00
Gert Driesen
e434f97be5
Renamed Quote transformation and corresponding class to ShellQuote.
...
Added DoubleQuote transformation.
Modified default remote path transformation for ScpClient to DoubleQuote.
2017-09-04 18:45:23 +02:00
Gert Driesen
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.
...
This allows for a custom transformation (escaping/quoting) - that implements IRemotePathTransformation - to be plugged into ScpClient.
Out of the box, we only provide two implementations that are exposed through the RemotePathTransformation (enum-like) class: Quote and None.
Fixes issue #256 .
2017-08-27 18:48:51 +02:00
Gert Driesen
0e2d0dc25d
Sync project file.
2017-08-27 16:19:59 +02:00