Implement SSH Compression support Phase 1

- compression.rs module with CompressionContext
- Compress/Decompress using flate2 (raw deflate, no zlib header)
- enable/disable/is_enabled methods
- compress/decompress with Sync flush
- Unit tests: disabled/enabled/roundtrip/supported

All tests pass.
This commit is contained in:
Warren
2026-06-21 01:40:07 +08:00
parent a8e4e28533
commit a5375075b8
2 changed files with 174 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
pub mod auth;
pub mod channel;
pub mod cipher;
pub mod compression; // SSH Compression support (RFC 4253 §6.2)
pub mod crypto;
pub mod data_forwarder;
pub mod kex;