Files
ssh.net/.gitattributes
T
Ferenc Vizkeleti 2d0e03b8ce Added SshCommand.InputStream to allow writing to stdin of SshCommand (#1293)
* Making all unit tests pass locally.
Excluded MD5 tests on net462 because I get System.InvalidOperationException: 'This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.'
SshdConfig: do not throw for "Include", just do nothing.
Modified failing dos2unix parameters in Dockerfile.TestServer.
Forceing LF line ending for key files used by integration tests, otherwise using them causes error.
SftpClientTest.Test_Sftp_Multiple_Async_Upload_And_Download_10Files_5MB_Each times out for maxFiles=10, decreasing to 2 to make the test pass.

* Added SshCommand.InputStream.

* Added an integration test for SshCommand.InputStream.

* Reverting changes made to unit tests unrelated to this PR.

* Moved ChannelInputStream's EOF sending from Write to Dispose. Replace SshCommand.InputStream with CreateInputStream to emphasise that a (disposable) resource is created here. EndExecute also closes the _inputStream to make sure that EOF is sent (in case the user forgot to dispose the input stream). Added more unit tests: sending the input one byte at a time, not disposing the input stream, calling CreateInputStream before BeginExecute or AfterEndExecute throws exception.

* Fixing review comments.

* Fix build error after #1286

---------

Co-authored-by: ferenc.vizkeleti <ferenc.vizkeleti@innopay.hu>
Co-authored-by: Wojciech Nagórski <wojtpl2@gmail.com>
Co-authored-by: Rob Hague <rob.hague00@gmail.com>
2024-02-06 18:02:19 +01:00

24 lines
488 B
Plaintext

* text=auto
*.cs text
*.xaml text
*.sln eol=crlf
*.csproj eol=crlf
*.shproj eol=crlf
*.appxmanifest eol=crlf
*.png binary
*.jpg binary
*.dll binary
*.pdb binary
*.exe binary
*.nupkg binary
*.pdf binary
*.snk binary
# Ensure key files have LF endings for easier usage with ssh-keygen
# Also, the dockerfile used for integration tests fails if key files have cr-lf
test/Data/* eol=lf
test/Renci.SshNet.IntegrationTests/server/**/* eol=lf
test/Renci.SshNet.IntegrationTests/user/* eol=lf