Gert Driesen
ab2ccc40bc
Add back copyright to license. ( #1060 )
...
Fixes #1059 .
2022-12-20 16:24:20 +01:00
LemonPi314
f3ebc290e2
Fix Seek Operations in SftpFileStream ( #910 )
...
* Fix offset operations in SftpFileStream.Seek
* Fix seek exception message and add default case for invalid seek origin
* Use named params when throwing ArgumentException
* Add tests for seeking from end of file
2022-11-29 21:33:47 +01:00
Masuri
b9bc4750ab
fix typo ( #999 )
2022-08-26 20:54:30 +02:00
Owen Krueger
34ce2bd1d0
Add IBaseClient for BaseClient and ISftpClient to inherit from ( #975 )
...
Add IBaseClient for BaseClient and ISftpClient to inherit from
2022-07-03 21:11:46 +02:00
drieseng
bd7c02f6e4
Remove unused import.
2022-05-29 17:00:12 +02:00
drieseng
c728fba850
Merge branch 'develop' of https://github.com/sshnet/SSH.NET into develop
2022-05-29 16:58:22 +02:00
drieseng
03c6d60736
Use cryptographically secure random number generator.
...
Fixes CVE-2022-29245.
2022-05-29 16:58:07 +02:00
Stefan Rinkes
bc99ada7da
Agent auth and Keygen ( #794 )
...
* Allow to set PrivateKeyFile Key directly
So you can add your own Key-Classes to SSH.NET
* Add ED25519 ctor for just pub key part.
* Make ECDSA Key Bits accessible
You cant export imported CngKeys. To be able to export them to agent or Key-Files make the private bits also accessible.
* Better NETFRAMEWORK vs NETSTANDARD handling
* Add Comment Property to Key
* Add IPrivateKeySource
So Extension can add own PrivateKeyFiles, e.g. PuttyKeyFile.
2022-03-05 17:05:02 +01:00
Maximiliano Jabase
b30b11af4f
correct 'Documenation' to 'Documentation' ( #838 )
...
in the documentation's window title
2022-02-15 22:54:02 +01:00
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 Fonseca and Pedro 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
wxtsxt and Wojciech 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 Gualandi and 103filgualan
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 Gualandi and 103filgualan
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