Skip to content

Commit 37dc55c

Browse files
committed
Correct compression algorithm name; Update README.md
1 parent beafd82 commit 37dc55c

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ Private keys can be encrypted using one of the following cipher methods:
122122
* hmac-sha2-256-etm<span></span>@openssh.com
123123
* hmac-sha2-512-etm<span></span>@openssh.com
124124

125+
126+
## Compression
127+
128+
**SSH.NET** supports the following compression algorithms:
129+
* none (default)
130+
* zlib<span></span>@openssh.com (.NET 6 and higher)
131+
* zlib (.NET 6 and higher)
132+
125133
## Framework Support
126134
**SSH.NET** supports the following target frameworks:
127135
* .NETFramework 4.6.2 (and higher)

src/Renci.SshNet/Compression/ZlibOpenSsh.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Renci.SshNet.Compression
44
{
55
/// <summary>
6-
/// Represents "zlib@openssh.org" compression implementation.
6+
/// Represents "zlib@openssh.com" compression implementation.
77
/// </summary>
88
public class ZlibOpenSsh : Compressor
99
{
@@ -12,7 +12,7 @@ public class ZlibOpenSsh : Compressor
1212
/// </summary>
1313
public override string Name
1414
{
15-
get { return "zlib@openssh.org"; }
15+
get { return "zlib@openssh.com"; }
1616
}
1717

1818
/// <summary>

test/Renci.SshNet.IntegrationTests/CompressionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void None()
2424
public void ZlibOpenSsh()
2525
{
2626
DoTest(new KeyValuePair<string, Func<Compressor>>("[email protected]", () => new ZlibOpenSsh()));
27-
}
27+
}
2828
#endif
2929

3030
private void DoTest(KeyValuePair<string, Func<Compressor>> compressor)

0 commit comments

Comments
 (0)