Commit Graph

239 Commits

Author SHA1 Message Date
olegkap_cp 307491da2d Fix null buffers when using proxy to connect 2012-01-20 14:36:53 +00:00
olegkap_cp cfa1a7028b Refactor PortForwarding
Fix ChannelDirectTcpip clean up after socket is close by remote host
Add ForwardedPortDynamic to support dynamic forwarding, SOCKS4 and SOCKS5 are supported.
2012-01-06 18:57:48 +00:00
olegkap_cp 81b9e21b8f Remove quotes when using SCP to download or upload 2012-01-04 18:14:40 +00:00
olegkap_cp e435bd2300 Add SOCKS4 & SOCKS5 Proxy support when connecting to remote server.
For silverlight only IP address can be used for server address when using proxy.
Usage example:
            var connectionInfo = new PasswordConnectionInfo("1.2.3.4", "username", "password", ProxyTypes.Socks4, "127.0.0.1", 8088);
            using (var ssh = new SshClient(connectionInfo))
            {
                ssh.Connect();
                var rrr = ssh.RunCommand("ls -l");
            }
2012-01-04 14:56:58 +00:00
olegkap_cp 746b4796fa Replace some documention source file (not finished yet) 2011-12-27 16:16:49 +00:00
olegkap_cp 50c8b3c6f2 Refactor SftpMessage to work with WindowsPhone correctly
Clean up unused code
2011-12-09 17:54:03 +00:00
olegkap_cp efa9d91f19 Add PipeStreamTest
Add SuppressMessage to some methods
Fix broken Test_Connect_Then_Reconnect test
2011-12-08 20:10:03 +00:00
olegkap_cp 6c4eda935f Restore logging for Sessions 2011-12-07 20:20:20 +00:00
olegkap_cp f5b84e974c Replace reflection operation with static message metadata to work with WindowsPhone. 2011-12-07 20:17:23 +00:00
olegkap_cp d96c93abb2 Minor fix to ASCIIEncoding
Add ScpClient to support SCP feature with limited featres supported in silverlight and WindowsPhone environment
Add ScpClient test
2011-12-07 19:12:29 +00:00
olegkap_cp 96c512fddb Add ability to examen server public key/fingerprint 2011-11-29 14:32:17 +00:00
olegkap_cp c301c940ce Create Random function for BigInteger
Clean up minor TODO items
2011-11-28 14:18:12 +00:00
olegkap_cp d1dee73f0e Fix SocketReadLine for Silverlight and WindowsPhone version 2011-11-23 19:29:40 +00:00
olegkap_cp 751d0fecd4 Clean up logging and make silverlight and WindowsPhone projects compilable again 2011-11-23 18:31:07 +00:00
olegkap_cp 148be6f50e Allow cancel long running async executed commands
Add BreakRequestInfo for possible future support
2011-11-22 20:09:42 +00:00
olegkap_cp a0c40a5842 Add LastAccessTimeUtc and LastWriteTimeUtc properties to SftpFile 2011-11-22 02:59:39 +00:00
olegkap_cp ef33d78e89 Fix international support, now all differnt character sets should work, depends on windows default selection
Add international support test case
Add XML documention  to some members of SubsystemSession class
2011-11-21 20:32:39 +00:00
olegkap_cp 428b026c48 Refactor Dispose to avoid calling any socket related commands from it 2011-11-18 15:49:49 +00:00
olegkap_cp dc2d8ec142 Replace call to WaitOne(TimeSpan) with WaitOne(TimeSpan, Boolean) to make it compartible with .NET 3.5 2011-11-16 04:42:11 +00:00
olegkap_cp 23d3eb8ae7 Add NetConf support, apply patch 10722 2011-11-16 03:46:00 +00:00
Kenneth_aa_cp aa10395ebc Changed the tests for Permission Denied to use /root, otherwise it caused Not Found. 2011-11-04 18:01:58 +00:00
Kenneth_aa_cp 9f22922cd9 Added basic low-level message logging, for those who has problems this might help interpret what happens. 2011-11-04 17:57:35 +00:00
Kenneth_aa_cp a39dcbf3ae Added some more documentation for methods in SshClient class. 2011-11-04 14:00:05 +00:00
Kenneth_aa_cp 4ea8d5c241 Fixed Download_Forbidden test to actually download and not upload. 2011-11-04 12:58:54 +00:00
Kenneth_aa_cp 231081729f Fixed a bug that was left after reworking compression. Caused Remote host closed the connection. 2011-11-04 08:37:10 +00:00
olegkap_cp 8680a84416 Add ZlibStream and refactor compression related code for fufutre zlib support. 2011-09-28 20:29:49 +00:00
olegkap_cp 99adc4de8b Make LastWriteTime and LastAccessTime properties updatable 2011-09-28 14:16:31 +00:00
olegkap_cp 44ace626b3 Fix regex to allow host to start with number 2011-09-19 12:51:58 +00:00
olegkap_cp 799e6d54b9 Internal changes, replace Dictionary<string,SftpFileAttributes> with KeyValuePair<string,SftpFileAttributes>[]. 2011-09-16 16:50:00 +00:00
olegkap_cp 91245999d9 Add additional BeginUploadFile method 2011-09-15 13:33:36 +00:00
olegkap_cp 1c8a03abb1 Fix encoding support and send command always encoded as UTF-8 2011-09-15 13:21:19 +00:00
olegkap_cp 234cd1e024 Update Silverlight and WindowPhone projects and make it compilable.
Apply new file naming convention for silverlight and windows phone project files
2011-09-15 12:52:35 +00:00
olegkap_cp b52679c0ef Minor code performance improvment, replace Array.Copy with Buffer.BlockCopy 2011-09-14 13:37:38 +00:00
olegkap_cp 2fc80afd6b Add file overwrite option to UploadFile method 2011-09-12 19:26:10 +00:00
olegkap_cp 2760c05e21 Implement write pipelining
Other minor peromnace improvments
2011-09-12 18:53:24 +00:00
olegkap_cp b0458769df Fix random bytes arrays generation size 2011-08-31 00:59:18 +00:00
olegkap_cp 83884c34aa Refactor and remove usage of Network stream to make it compartible with Silverlight
Make silverlight project compilable (still cannot connect, signature fails)
2011-08-30 03:01:46 +00:00
olegkap_cp 4c1b9660f1 Add missing Resources file from the test project 2011-08-29 13:47:41 +00:00
olegkap_cp 213ac99613 Fix RsaCipher block type condition 2011-08-29 00:29:04 +00:00
olegkap_cp 98033220e8 Rename Size int Length to look more like FileInfo 2011-08-28 15:41:31 +00:00
olegkap_cp ba3efa90f7 Fix RSA cipher and add support for different key sizes. 2011-08-28 14:12:07 +00:00
olegkap_cp 7f0c5d2399 Make NextRequestId property thread safe. 2011-08-27 12:12:49 +00:00
olegkap_cp 4b1f991c9e Remove ASCIIEncoding class and replace ASCII to UTF-8
Refresh Silverlight and WindowsPhone projects
2011-08-27 03:42:50 +00:00
olegkap_cp da854b711a Apply 10278 patch and make some minor corrections
Fix Renci.SshNet.NET35 project and make it compilable
Add Tests for .NET 3.5
2011-08-26 12:52:20 +00:00
olegkap_cp 5aa082d32d Add BigInteger.BitLength property
Use BitLength property to calculate random value
2011-08-25 18:00:32 +00:00
olegkap_cp 70105742d3 Add project for future .NET 3.5 support 2011-08-25 14:00:39 +00:00
olegkap_cp 5cfea7f750 Remove deleted files from the source
Fix SftpFile.MoveTo method to rename file
Correct SshData class ReadString and ReadBinaryString methods
Add SftpFile.MoveTo test
2011-08-24 13:32:28 +00:00
Kenneth_aa_cp 20a22115f2 SshData.cs - Added 2 parameter checks.
SshClient.cs - Added 1 parameter check.

In SymetricCipher, added check for constructor parameter key, added documentation to all classes that inherits from this class: Block(Cipher), Aes, Arc4, Blowfish, Cast, Des, Serpent, TripleDes, Twofish and Stream.
These were found using Code Analysis: Full.
2011-08-24 05:04:45 +00:00
Kenneth_aa_cp d8ee7d17d2 SshData.cs - Added 4 exception documentation, added 3 parameter checks, fixed typo in exception message for ReadString/ReadBinaryString. Also note that any call to SshData.Write(IEnumerable<byte>) will throw if passed null, List<byte>.AddRange does that for us.
SubsystemSession.cs - Added 1 exception documentation and parameter check on Constructor(Session,string,TimeSpan).
SftpClient.cs - Added more exception documentation than I care to count.
PipeStream.cs - Fixed mismatch between documentation and the actual exception in Write(byte[], int, int). Also in property Position, throwing NotImplemented but documented NotSupported. Also happens elsewhere o.O - I'm not touching this code anymore, see Workitem 819.
SemaphoreLight.cs - Added 1 exception documentation.
2011-08-24 03:00:58 +00:00
olegkap_cp 097246c153 Split SftpSession class into 2 to allow future extensability of other sub systems 2011-08-22 13:51:15 +00:00