Gert Driesen
4c1d8d8a95
Added new interfaces to Silverlight and WP project files.
2014-10-11 11:29:42 +00:00
Gert Driesen
e79b567365
Dispose channel on EndExecute. Fixes issue #2295 .
...
Add encoding argument to SshCommand ctor.
2014-10-11 11:20:26 +00:00
Gert Driesen
965a0ba4c7
Introduce IChannel and IChannelSession interface to allow for unit testing.
2014-10-11 10:40:08 +00:00
Gert Driesen
67a0242dc0
Document fix for issue #2399 .
2014-10-11 10:20:48 +00:00
Gert Driesen
c270662690
Added ClientAuthentication and newly introduced interfaces to remaining projects.
2014-10-06 18:29:18 +00:00
Gert Driesen
2427090ecb
Added ISession, IAuthenticationMethod and IConnectionInfo interfaces to allow mocking.
...
Extracted authentication logic into ClientAuthentication class to allow improve testabiity.
When a given authentication method has already been authenticated against, then skip the method if there are still alternative authentication methods.
Fixes issue #2399 .
Added test for several authentication scenarios.
Part 2 to come where new interfaces will be added to other projects.
2014-10-06 18:24:20 +00:00
Gert Driesen
889184a11a
Added ChannelDirectTcpip.SilverlightShared.cs to SL projecT.
2014-10-06 17:43:09 +00:00
Gert Driesen
2d06002ef7
Add WaitOnHandle overload that takes the time to wait for any of the handles to become signaled.
2014-10-06 17:15:25 +00:00
Gert Driesen
acaab92df9
Add draft of ChannelDirectTcpip for Silverlight.
2014-10-06 17:01:24 +00:00
Gert Driesen
d2e394430f
Use SilverlightShared version of classes from Silverlight.
...
Remove unused imports.
2014-10-06 16:04:23 +00:00
Gert Driesen
dc011ae0de
Minor correction to docs.
...
Improved exception messages.
Avoid race condition when raising events.
2014-05-15 19:14:51 +00:00
Gert Driesen
9e52280d38
Document fix for issues #1942 and #1944 .
2014-05-08 19:07:21 +00:00
Gert Driesen
c7787a5783
Fix some minor warnings, and code formatting.
2014-05-07 19:40:56 +00:00
Gert Driesen
e1c620bfd2
Avoid initializing HostKeyEventArgs when there are no event handlers registered.
2014-05-07 19:11:04 +00:00
Gert Driesen
ac180a580a
Use lambda expression.
2014-05-07 19:09:56 +00:00
Gert Driesen
8c4e3119ef
Support an acceptable group of up to 8192 bits for SHA-1 and SHA-256 Diffie-Hellman Group and Key Exchange (issue #1973 and #1777 ), and refactor corresponding classes to avoid code duplication.
2014-05-07 18:21:30 +00:00
Gert Driesen
57496a4f3f
Remove nullOnError argument for RequestFStat and RequestLStat as it was never used.
2014-05-04 19:27:37 +00:00
Gert Driesen
a50a5ec8ec
Document SftpPathNotFoundException for Delete overloads.
...
Fixed a few minor typo's.
2014-05-04 19:26:16 +00:00
Gert Driesen
d769506f31
Use SSH_FXP_LSTAT to determine whether a given file or directory exists.
...
Fixes issues #1952 , #1696 and #1574 .
2014-05-04 19:05:35 +00:00
Gert Driesen
43836a5b50
Added support for ssh.com private keys.
...
Fixes issue #1987 .
2014-05-02 09:41:41 +00:00
Gert Driesen
78f13742b3
Fixed typo in remarks.
2014-05-02 08:35:34 +00:00
Gert Driesen
2192dc0241
Improved accuracy of IsConnected on .NET.
2014-04-18 18:56:53 +00:00
Gert Driesen
4021d3ce4f
Also create source zip file as part of build.
2014-04-18 18:05:20 +00:00
Gert Driesen
a22b002dd8
Fix some warnings.
2014-04-18 17:56:33 +00:00
Gert Driesen
172cf7b09c
Renamed ChannelAsyncResult.cs to CommandAsyncResult.cs to match name of class.
...
Removed command argument from CommandAsyncResult as its never used.
2014-04-18 17:55:15 +00:00
Gert Driesen
1858623c96
Remove commented code.
2014-04-17 17:48:56 +00:00
Gert Driesen
fa5e42d0ca
Removed a few conditions from IsSocketConnected that have been moved to IsConnected. Fixed a few warnings.
2014-04-15 16:29:33 +00:00
Gert Driesen
d3f750aa79
Unsubscribe from events before disposing WaitHandles.
...
This reduces the likelyhood of invoking Set() on a disposed WaitHandle.
Incomplete fix for issues #1944 and #1942 as eventhandlers could still be invoked after unsubscription.
2014-04-10 19:00:40 +00:00
Gert Driesen
0a8ac33d46
Unsubscribe from events before disposing WaitHandles.
...
This reduces the likelyhood of invoking Set() on a disposed WaitHandle.
Incomplete fix for issues #1944 and #1942 as eventhandlers could still be invoked after unsubscription.
2014-04-10 18:56:29 +00:00
Gert Driesen
61b712a512
Fix issue #1943 :
...
Client channels are no longer closed on dispose
2014-04-07 13:20:26 +00:00
Gert Driesen
53cd872b89
Document fix for issue #1764 :
...
Incorrect copyright in assemblies
2014-04-06 15:07:17 +00:00
Gert Driesen
239a425225
Fix indentation of release notes.
2014-04-06 12:31:52 +00:00
Gert Driesen
92231b5150
Shall we make it 2014.4.6-beta1, right :p
2014-04-06 09:13:53 +00:00
Gert Driesen
039f7fea7b
2013.4.6-beta1
2014-04-06 09:08:14 +00:00
Gert Driesen
fea1433f2a
Fix compile on WP.
2014-04-06 09:02:37 +00:00
Gert Driesen
8568283583
Add SandCastle folder under Build.
...
Fix formatting of comment in SandCastle build script.
2014-04-06 06:57:25 +00:00
Gert Driesen
069b373343
Remove linefeed from WriteLine method in Shellstream class (issue #1584 ).
...
Guard against NRE in Channel_DataReceived.
2014-04-05 12:47:30 +00:00
Gert Driesen
46d15325e9
Use an int to hold position when iterating of state. Stuck loop on key exchange using arcfour encryption (issue #1922 )
2014-03-31 18:55:22 +00:00
Gert Driesen
fbd482fd63
Split up data in multiple messages when it does not fit in remote window size. This prevents timeout when sending data to server with a low window size and which adjusts the window size very conservatively (issue #1706 )
2014-03-31 18:44:35 +00:00
Gert Driesen
dae0eb761d
Make it more clear that the local window size is related to the packet size.
2014-03-31 17:37:29 +00:00
Gert Driesen
c1fec4b7a4
Add support for generating help doc.
2014-03-23 19:26:55 +00:00
Gert Driesen
870bedfe55
Move all shared assembly-level attribute to CommonAssemblyInfo.cs.
2014-03-23 19:05:57 +00:00
Gert Driesen
fc490c0fa7
Added ClientChannel, ServerChannel and ChannelOpenConfirmedEventArgs source files, and do not emit debug symbols in release configuration.
2014-03-23 18:19:05 +00:00
Gert Driesen
12b3793582
Use batching to simplify build script.
2014-03-23 09:15:36 +00:00
Gert Driesen
1b83ffb5a9
Document few more fixed, and correct typo.
2014-03-23 09:14:45 +00:00
Gert Driesen
d68fde30fe
Fixed another reference in XML doc.
2014-03-23 09:13:32 +00:00
Gert Driesen
22d44348f5
Fixed reference in XML doc.
2014-03-23 09:12:24 +00:00
Gert Driesen
3384a7d806
Fix compile on .NET 3.5
2014-03-23 09:09:20 +00:00
Gert Driesen
397640ef10
Issue #1930 : No connection possible with the same auth method requested multiple times. Improve exception message for authentication failures.
2014-03-22 18:03:09 +00:00
Gert Driesen
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.
2014-03-22 15:06:44 +00:00