Commit Graph
1325 Commits
Author SHA1 Message Date
Igor Milavec 4dfc126ace Add unit tests for task-based asynchronous API (#906)
* Fix runtime and culture dependant tests.
* Set C# 7.3 in Tests.csproj to limit intellisense's suggestions under different targets
* Add SftpClientTest.*Async
* Add SftpFileStreamTest_OpenAsync_*
* Add SftpFileStreamTest_WriteAsync_*
* Add SftpFileStreamTest_ReadAsync_*
* Align AppVeyor script with Test project target frameworks
2022-02-15 20:46:34 +01:00
Pedro FonsecaandPedro Fonseca 37fb864663 Fix virus false-positive by Defender on Renci.SSHNet.Tests.dll (#867)
Co-authored-by: Pedro Fonseca <pfonseca@qti.qualcomm.com>
2022-02-14 20:27:52 +01:00
drieseng cad943343b Add CODEOWNERS file. 2022-02-11 22:00:48 +01:00
Igor Milavec 7bdfc9e615 Add async support to SftpClient and SftpFileStream (#819)
* Add FEATURE_TAP and net472 target
* Add TAP async support to SftpClient and SftpFileStream
* Add async support to DnsAbstraction and SocketAbstraction
* Add async support to *Connector and refactor the hierarchy
* Add ConnectAsync to BaseClient
2021-12-14 21:58:10 +01:00
Igor Milavec 30d79c7b31 Start MessageListener with ThreadAbstraction.ExecuteThreadLongRunning (#902)
* Fix Thread pool exhaustion due to MessageListener running on ThreadPool
* Mark long running thread as background
2021-11-28 15:42:04 +01:00
wxtsxtandWojciech Swieboda 583a9cea6a Add interface to SftpFile #120 (#812)
* Create ISftpFile interface. SftpFile sealed. Return ISftpFile from SftpClient instead of SftpFile. Make ISftpClient interface disposable.

Co-authored-by: Wojciech Swieboda <wswieboda@chathamfinancial.com>
2021-09-08 18:26:56 +02:00
Stefan Rinkes f072c5f1a1 OPENSSH KeyReader for more keys (#614)
* OPENSSH KeyReader for more keys

Add support to parse OpenSSH Keys with ECDSA 256/384/521 and RSA.

https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key

Change-Id: Iaa9cce0f2522e5fee377a82cb252f81f0b7cc563

* Fix ED25519Key KeyLength

* Fix ED25519 PubKey-auth

LeadingZeros of BigInteger-Conversion have to be removed
before sending the Key.
2021-04-18 18:49:01 +02:00
Filippo Gualandiand103filgualan a5bd08d655 Assets/logos (#782)
* Added logo assets

* Added PNG 1260x640 with white border

Co-authored-by: 103filgualan <f.gualandi@crif.com>
2021-02-21 10:39:55 +01:00
drieseng 6e1f839ca1 Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop 2021-01-12 19:32:25 +01:00
drieseng 91b64585bc Support LF as line ending for banner and identification string
Fixes #761
2021-01-12 19:31:25 +01:00
Gert Driesen d62594c03f Update README.md 2020-12-31 14:46:08 +01:00
Gert Driesen 9c25cf65ca Update README.md 2020-12-31 14:45:50 +01:00
Gert Driesen b2c36b5e2c Update README.md 2020-12-31 14:45:16 +01:00
Filippo Gualandiand103filgualan 67318d8b68 Added logo assets (#743)
Co-authored-by: 103filgualan <f.gualandi@crif.com>
2020-12-31 14:39:03 +01:00
drieseng a620835c69 Support our legacy target frameworks. 2020-12-31 14:01:35 +01:00
drieseng 68a47f6890 Workaround 'Could not create SSL/TLS secure channel' issue due to TLS 1.1 being the default on earlier versions of .NET. 2020-12-31 13:27:49 +01:00
drieseng 008556205b Allow for a small marging when verifying whether configured timeout was respected. 2020-12-31 11:37:18 +01:00
drieseng 41e378cfc0 Fix test. 2020-12-30 22:12:54 +01:00
drieseng 767fafbfc1 Improve exception messages further. 2020-12-30 21:19:30 +01:00
drieseng f60f24fb9c Fix more tests to pass on .NET Core. 2020-12-30 16:06:24 +01:00
drieseng a5148aea1a Fix some test failures on .NET Core. 2020-12-30 15:13:57 +01:00
drieseng d5fefcc369 Fix and rename test. 2020-12-30 13:13:20 +01:00
drieseng e8db68c371 Improve exception messages. 2020-12-30 11:44:25 +01:00
drieseng 8d485f918b Remove unused import. 2020-12-30 11:43:35 +01:00
drieseng f09496b782 Fix remaining test failure. 2020-12-29 20:22:10 +01:00
drieseng 43f18cb3d4 Fix test failures. 2020-12-29 20:13:19 +01:00
drieseng 60be75d85c Complete refactoring of connection process, and greatly improve test coverage. 2020-12-29 20:01:28 +01:00
drieseng e0b32a41ea Add Connect overload that takes existing Socket instance. 2020-12-29 19:53:46 +01:00
drieseng de06f12350 Allow for easier troubleshooting of protocol version exchange.
Fixes #751.
2020-12-29 18:56:26 +01:00
drieseng eefcd8fbc5 Fix test failure. 2020-12-27 12:16:49 +01:00
drieseng fbadaf8b74 Fix handling of empty line. 2020-12-27 12:06:36 +01:00
drieseng e71a4c958d Update tests after connection refactoring. 2020-12-27 11:52:12 +01:00
drieseng a1e4e04e04 Revert back to using SocketShutdown.Send in an attempt to stabilize tests. 2020-12-27 10:37:30 +01:00
drieseng dc9c637759 Refactor how connection is established to server. 2020-12-27 10:20:03 +01:00
Eric Brumfield cefdc203d9 Add ISftpClient interface to SftpClient (#197)
Add ISftpClient interface to **SftpClient for mocking and testing purposes.
Fixes #193.
2020-07-19 18:49:12 +02:00
Bill Menees 90a13a6c5a Fix SFTP file UTC time handling (#356)
* Improved SFTP file UTC time handling
2020-07-18 10:59:30 +02:00
Gert Driesen c10277f4d7 Fix typo. 2020-06-07 15:45:45 +02:00
drieseng 2cc42c9b91 Remove local-use file. 2020-06-07 15:40:39 +02:00
drieseng 638a30c521 Fix path to source file. 2020-06-07 15:31:29 +02:00
drieseng b5dcca911a Update path to example. 2020-06-07 15:23:11 +02:00
drieseng a697693bfa Update name of Sandcastle Help File Builder environment variable. 2020-06-07 13:30:33 +02:00
drieseng 22a895f427 Update name of Sandcastle Help File Builder environment variable. 2020-06-07 13:23:50 +02:00
drieseng 8ac8e87e69 Fix package targets. 2020-06-07 12:51:37 +02:00
Gert Driesen bde751eb48 Add sponsor info. 2020-06-07 10:26:32 +02:00
Gert Driesen cce5c74027 Update FUNDING.yml 2020-06-04 10:46:45 +02:00
Gert Driesen 261f5287de Create FUNDING.yml 2020-06-04 10:45:35 +02:00
drieseng 8fbaa3c5bc Remove stray CWL. 2020-06-01 09:58:31 +02:00
drieseng c5cb1caf76 Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop 2020-06-01 09:53:22 +02:00
drieseng 4906b64e7a Immediately sent identification string when connection is established.
Fixes #689.
2020-06-01 09:52:49 +02:00
Gert Driesen e44913029e Synchronize legacy project files. 2020-05-03 21:18:49 +02:00