Commit Graph
190 Commits
Author SHA1 Message Date
olegkap_cp 097246c153 Split SftpSession class into 2 to allow future extensability of other sub systems 2011-08-22 13:51:15 +00:00
olegkap_cp ae45316542 Add few cipher and private key tests 2011-08-22 02:03:00 +00:00
olegkap_cp dbd5f07d20 Fix CA2214 and some other CA complaints
Fix some comments
Fix DownloadFile hang error introduced in previouse check in
2011-08-20 23:39:40 +00:00
olegkap_cp 34a5cba265 Code Cleanup
Some TODO items
Replace IEnumerable<byte> with byte[] to reduce calling .ToArray() function
Fix ListDirectory ( close open directory handle)
2011-08-18 19:24:00 +00:00
olegkap_cp 6f20f21d11 Improve DER object serialization and add ObjectIdentifier class to identify algorithm being used during DER serialziation 2011-08-18 13:09:20 +00:00
olegkap_cp 67538291a5 Fix RequestRead operation 2011-08-17 15:14:37 +00:00
olegkap_cp 745bc9e2bc Add RsaKey and DsaKey classes
Add HostAlgorithm class for host key authentication and possible for certificate authentication in the future
Refactor public/private key logic
2011-08-16 18:48:16 +00:00
Kenneth_aa_cp eb8a5086ad ConnectionInfo.cs - Added 1 exception documentation.
PrivateKeyFile.cs - Added 4 exception documentation, and added parameter checks for null to DecryptKey.
SftpFile.cs - Added 1 exception documentation.
SftpFileStream.cs - Added 3 exception documentation.
SftpClient.cs - Added 8 exception documentation, and added a an attribute to SetLastAccessTime, SetLastAccessTimeUtc, SetLastWriteTime, SetLastWriteTimeUtc to give warning about not being implemented.
Shell.cs - Added 2 exception documentation.
SshCommand.cs - Added 3 exception documentation, and added 2 notes in BeginExecute as to how to better explain the exception, and question what happens if callback is null.
2011-08-16 06:26:02 +00:00
olegkap_cp b20150456e Refactor and reorganize cipher encryption (more need to be done)
Add padding for private key DES-EDE3-CBC, DES-EDE3-CFB and others encryption/decryption
Add internally implemented DSA digital signature
Change encruption and hash algorithm definition in ConnectionInfo from Type to Lambda expression
2011-08-11 02:01:18 +00:00
olegkap_cp 033218647f Add KeepAliveRequestInfo class
Add EndOfWriteRequestInfo class
Refactor channel request messages to allow custom channel reuqest support
2011-08-03 18:53:45 +00:00
olegkap_cp e369b0f53e Add and fix comments 2011-07-29 19:13:44 +00:00
olegkap_cp 5e2112e62b Add SHA256Hash algorithm
Exclude RSA Private Key from Silverlight version
Minor silverlight related fixes
2011-07-28 20:44:10 +00:00
olegkap_cp 40b36edaf1 Add SHA1 algorithm
Add RSA Private key algorithm
Adding some Silverlight specific #if...#endif
2011-07-28 20:09:41 +00:00
olegkap_cp e3d3796d33 Fix Aes -ctr algorithms
Move hmac-md5 hashing algorithm into library
2011-07-13 14:41:13 +00:00
olegkap_cp 7d8c9cf61e Refactor and reorganize cipher code
Fix TripleDES cipher
Fix and add missing comments
Mark assembly as not CLR
2011-07-06 20:19:29 +00:00
olegkap_cp 445d995f44 Add ASCIIEncoding to be used internally and also by Silverlight implementations
Misc logic sepeartion to prepare for Silverlight
2011-07-05 20:03:02 +00:00
olegkap_cp 1217c5505e Minor changes for future silverlight support 2011-07-05 16:00:43 +00:00
olegkap_cp a5c68f73c5 Fix some issues raised in #752 Issue 2011-07-05 15:24:50 +00:00
Kenneth_aa_cp 3d0738c8c8 Undo panic. 2011-07-04 11:13:22 +00:00
Kenneth_aa_cp 0a1aa984ec Firealarm 2011-07-04 10:58:55 +00:00
olegkap_cp 18b6eafaaa Extract thread related operation to NET40 partial classes
Replace SemaphoreSlim with custom SemaphoreLight class
2011-06-30 20:49:00 +00:00
olegkap_cp 972b1eae21 Split exception file into two partial files so it could be reused by other implementations 2011-06-30 15:21:50 +00:00
olegkap_cp 6411407558 Replace System.Numerics.BigInteger type with internally implemented Renci.SshNet.Common.BigInteger 2011-06-30 14:51:17 +00:00
olegkap_cp 2d988eff58 Adding and linking project for Silverlight and WindowsPhone development 2011-06-29 17:36:40 +00:00
olegkap_cp fd22cf21a2 Replace ErrorEventArgs with ExceptionEventArgs 2011-06-29 14:59:15 +00:00
olegkap_cp db11576c82 Remove Messages folder from previouse check-in 2011-06-27 17:58:55 +00:00
olegkap_cp e67cc54cd2 Refactor SFTP messages to request/response
Add new Exists method to verify if file of directory exists
Change Get method to throw an exception if file or directory do not exists
Replace SftpAsyncResult with SftpDownloadAsyncResult, SftpUploadAsyncResult and SftpListDirectoryAsyncResult
2011-06-27 17:57:51 +00:00
olegkap_cp be896dc88a Fix Buffer.BlockCopy error in SftpFileStream.Write method 2011-06-21 20:14:54 +00:00
olegkap_cp ef83707843 Fix FileMode.Create behaviour for SftpFileStream class 2011-06-21 20:00:22 +00:00
olegkap_cp b248dcc75f Rename SshFileNotFoundException to SftpPathNotFoundException to include file and direcotry errors and to be more SFTP specific.
Rename SshPermissionDeniedException to SftpPermissionDeniedException to specify SFTP specific exception.
2011-06-21 19:18:50 +00:00
olegkap_cp 3e770696ae Fix ChangeDirectory method
Fix GetCanonicalPath method
Add tests for ChangeDirectory
2011-06-21 19:13:34 +00:00
olegkap_cp 6411f723ca Remove call to Stop method to prevent dead lock in local port forwarding 2011-06-21 16:56:03 +00:00
olegkap_cp be0dbf600e Add support for validation of IPv6 addresses 2011-06-13 13:46:09 +00:00
olegkap_cp 2bea9352eb Refactor SftpFileAttributes class to be public
Add SetAttributes and GetAttributes methods
2011-06-07 20:25:12 +00:00
olegkap_cp 4d79078a70 Add SftpFileStream class
Add Sftp file methods to SftpClient class, similar to File class methods
2011-06-07 18:50:08 +00:00
Kenneth_aa_cp 3156167c0d Added test for #713.
Added test Test_PortForwarding_Local_Stop_Hangs_On_Wait.
2011-05-19 09:01:21 +00:00
olegkap_cp a1b3ce729b Fix async SFTP operations and ensure that only valid asyncResult objct can be used with End* operation 2011-05-18 15:24:03 +00:00
olegkap_cp e9167373f7 Add new method to Extensions class for test purposes
Add argument checking based on test
Correct some tests and add few more
2011-05-16 14:06:13 +00:00
Kenneth_aa_cp 8e7e93fc7e Fixed some tests to prevent certain tests to be run as root, for idiot-proofing and to prevent a test to succeed where it should fail. 2011-05-15 18:25:24 +00:00
Kenneth_aa_cp 27a87a8c29 Added tests for PortForwardEventArgs.
Added Test_PortForwardEventArgs_Host_Null
Added Test_PortForwardEventArgs_Host_Empty
Added Test_PortForwardEventArgs_Port_Invalid
2011-05-15 17:25:55 +00:00
Kenneth_aa_cp b44c1679fc Added tests related to port forwarding, local and remote for null/string.Empty and invalid port numbers.
Added Test_AddForwardedPort_Local_Hosts_Are_Null.
Added Test_AddForwardedPort_Local_Hosts_Are_Empty.
Added Test_AddForwardedPort_Remote_Hosts_Are_Null.
Added Test_AddForwardedPort_Remote_Hosts_Are_Empty.
Added Test_AddForwardedPort_Local_Hosts_Are_Empty.
Added Test_AddForwardedPort_Invalid_PortNumber.
2011-05-15 17:13:47 +00:00
Kenneth_aa_cp 33eb7c557e Added test Test_Get_File_Null - passing null to Get. 2011-05-15 10:50:51 +00:00
Kenneth_aa_cp 07f033a647 Updated vsmdi file, forgot to include in previous commit. 2011-05-15 10:40:17 +00:00
Kenneth_aa_cp 406da97441 Added SftpClient tests: ListDirectory with null, CreateDirectory with null, ChangeDirectory with null, DeleteDirectory with null, DeleteFile with null, RenameFile with null, BeginUploadFile with null, BeginDownloadFile with null. Methods:
Added Test_Sftp_ListDirectory_Null
Added Test_Sftp_CreateDirectory_Null
Added Test_Sftp_ChangeDirectory_Null
Added Test_Sftp_DeleteDirectory_Null
Added Test_Sftp_DeleteFile_Null
Added Test_Sftp_RenameFile_Null
Added Test_Sftp_BeginUploadFile_Null
Added Test_Sftp_BeginDownloadFile_Null
2011-05-15 10:34:52 +00:00
Kenneth_aa_cp 936c296b82 Added tests for ConnectionInfo, passing whitespace (space) as argument for the constructor on host, username and password.
Updated WorkItem attribute on test Test_Execute_Command_Same_Object_Different_Commands.
2011-05-15 10:04:06 +00:00
Kenneth_aa_cp a9d1ba340c Added WorkItem property on some test relating to Issue #703
Added Visual Studio Test Meta Data File, to organize tests abit. (Not completed)
2011-05-14 16:00:58 +00:00
Kenneth_aa_cp 9e54548963 Added test that delegates passed to BeginUploadFile, BeginDownloadFile and BeginListDirectory are actually called. 2011-05-14 15:29:43 +00:00
olegkap_cp 79095fa477 Ensure that command EndExecute called only once
Call callback before End* command for SFTP operations
2011-05-14 04:08:40 +00:00
olegkap_cp 699163773b Flush StreamWriter for Shell shortcut operation 2011-05-12 13:08:47 +00:00
olegkap_cp da67b51a48 Fix shell stream output.
Fix NullRefernce exception when shell finishes
2011-05-11 22:58:51 +00:00