Commit Graph

387 Commits

Author SHA1 Message Date
olegkap_cp badcf4052c Fix and remove orphan threads when using port forwarding. 2013-03-07 21:35:37 +00:00
olegkap_cp 6c761cf491 Replace previouse fix with Connection test vs if disposed 2013-03-07 16:40:29 +00:00
olegkap_cp c72ac9c42f Dont call Channel Close() during dispose phase 2013-03-07 16:36:50 +00:00
olegkap_cp b04d660cd6 Fix differnt SCP Upload issue.
Remove not SCP feature of creating directory structure for uploaded files or directories
2013-03-07 16:14:36 +00:00
olegkap_cp 4df7a2849b Lock _incoming object where performing Enqueue
Rollback previouse commit
2013-03-02 14:37:53 +00:00
olegkap_cp d0c028a938 Lock _encoding in ShellStream when GetString operation is performed 2013-03-02 14:29:40 +00:00
olegkap_cp 2825e44f45 Improve HTTP proxy error handling, regarding issue #1509
Apply 13964 patch to improve handling of multiple authentication methods
2013-03-02 13:57:32 +00:00
olegkap_cp 6dc8840e45 Commiting files that were not commited on previous commit 2013-02-07 20:00:07 +00:00
olegkap_cp 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
2013-02-07 19:47:47 +00:00
olegkap_cp 759aa4c9ee Improve SftpClient Exists method 2013-02-02 22:39:46 +00:00
olegkap_cp 0434c54ef1 Fix problem when huge files could be cut off in the middle 2013-02-02 21:16:30 +00:00
olegkap_cp e1b2d13a99 Fix SCP to handle root path 2013-02-02 15:41:52 +00:00
olegkap_cp 19802b6553 Add IPAddress as parameter to ForwardedPortRemote
Allow all projects to generate xml documentation files
Add GetIPAddress method and other minor refactoring
2013-01-31 04:45:14 +00:00
olegkap_cp 29f641ba61 Update Assmbly information to version 2013.1.27 2013-01-27 01:22:45 +00:00
olegkap_cp fd428dd617 Fix some tests
Update all projects to generate xml documentation file
Cross project fixes to make it compilable for all projects
2013-01-27 01:13:53 +00:00
olegkap_cp d31b4c76e1 Fix how exceptions are thrown
Fix exception being thrown for asynchronous multiple SFTP file download
Add additional helper BeginDownloadFile and BeginUploadFile methods
2013-01-26 14:01:35 +00:00
olegkap_cp 7f52ff7dee Ensure all forwarded ports are removed when client disconects so it could be reused later 2013-01-25 23:30:23 +00:00
olegkap_cp b2015d4b2d Fix SftpFileStream corrupting data on upload 2013-01-25 01:11:28 +00:00
olegkap_cp 4276e4b8e6 Fix ScpClient upload to allow path to include subdirectories 2013-01-24 22:39:27 +00:00
olegkap_cp 4dd65b5b9f Update AssmeblyInformation 2013-01-24 04:20:48 +00:00
olegkap_cp 2d769888f5 Add missing files to linked projects 2013-01-23 14:46:17 +00:00
olegkap_cp 89a6083eda Refactor HMAC
Add SHA512Hash, SHA384Hash classes for future hash support
2013-01-23 13:50:13 +00:00
olegkap_cp 3bf76ef842 Add HashInfo class and refactor hashing works
Fix *-96 hashing algorithms
2013-01-22 13:36:54 +00:00
olegkap_cp 95abd4557b Fix Expect method
Improve BeginExpect to be implemented similar to other asynch methods
2013-01-21 12:56:54 +00:00
olegkap_cp 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
2013-01-21 02:56:41 +00:00
olegkap_cp c62571a059 Remove some test code from previouse commit 2013-01-20 15:23:42 +00:00
olegkap_cp ff2d8b3f52 Add support for hmac-sha2-256, hmac-sha2-256-96, hmac-md5-96 and hmac-sha1-96 2013-01-20 04:47:18 +00:00
olegkap_cp eba904b54e Add IsUploadCanceled and IsDownloadCanceled properties to allow cancelation of long running operations 2013-01-20 00:51:02 +00:00
olegkap_cp 111fd3e052 Add support for twofish cipher 2013-01-20 00:12:11 +00:00
olegkap_cp affc93e4f0 Connectivity check fix from previouse commit 2013-01-19 04:07:41 +00:00
olegkap_cp 95eeb107a0 Remove EnsureConnection and move its funcionality into Session.SendMessage method 2013-01-19 03:56:35 +00:00
olegkap_cp bc4e66139b Improve IsSocketConnected test 2013-01-18 17:52:57 +00:00
olegkap_cp f1e82058e5 Ensure Channel Close message is sent only once
PortForwarding improvments
2013-01-17 02:34:55 +00:00
olegkap_cp c46ceaf34b Add support for arcfour cipher and hmac-ripemd160 algorithms
Refactor cipher to allow support of stream ciphers for encryption/decryption
2013-01-10 17:00:12 +00:00
olegkap_cp 2d0286b380 Throw ObjectDisposedException exception when trying to use ShellStream that was already disposed 2013-01-10 15:22:22 +00:00
olegkap_cp 39e30765c1 Fix SCP hanging when downloading single file into directory 2013-01-10 14:28:53 +00:00
olegkap_cp 7290fdd514 Remove unused static references 2013-01-10 02:08:17 +00:00
olegkap_cp 74f78740a4 Remove files that not in use 2013-01-09 13:52:38 +00:00
olegkap_cp c856a71a7f Add NUGET package file to the project 2013-01-08 17:59:15 +00:00
olegkap_cp 7065c344b3 Refactor some tests 2013-01-08 17:34:39 +00:00
olegkap_cp 8e64b8f21b Ensure Queue.Dequeue operation is called only when data still availalbe in queue 2013-01-08 16:15:45 +00:00
olegkap_cp b629a4f344 Remove delete files 2013-01-08 16:07:12 +00:00
olegkap_cp 6d2604948d Remove documention content and move code examples into test and code comments 2013-01-08 15:46:14 +00:00
olegkap_cp 358b08905f Fix and add XML comments 2013-01-07 18:41:10 +00:00
olegkap_cp 807259a016 Apply 13574 patch 2013-01-07 14:28:50 +00:00
olegkap_cp 38b016236e Add few examples into code comments
Fix some XML comments
Add test placeholders to implement in the future
2013-01-07 01:05:17 +00:00
olegkap_cp b6c7336d0b Fix to handle channel closed message by SubsystemSession class 2013-01-04 13:53:16 +00:00
olegkap_cp 09e8d2d7aa Fix synchroization issue in ShellStream reading 2013-01-03 23:51:19 +00:00
olegkap_cp 2c424f6256 Refactor ShellStream to add BeginExpect
Fix Shell support in Silverlight and WindowsPhone applications
2013-01-03 22:12:32 +00:00
olegkap_cp 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);

                var shell = ssh.CreateShell(input, output, output, "xterm", 80, 24, 0, 0, terminalModes);
                shell.Stopped += delegate
                {
                    Console.WriteLine("\nDisconnected...");
                };
                shell.Start();
                Thread.Sleep(1000 * 100);
                shell.Stop();
            }
2013-01-03 20:04:14 +00:00