Commit graph

2 commits

Author SHA1 Message Date
John Humlick
dda0a70d90 cdiff: Replace cdiff-apply feature with Rust implementation
Apply both .cdiff and .script CVD patches.

Note: A script is a non-compressed and unsigned file containing cdiff
commands. There is no header or footer that should be processed.

This Rust-based implementation of the cdiff-apply feature includes
equivalent features as found in the C-based implementation:
- cdiff file signature validation against sha256 of the file contents
- Gz decoding of file contents
- File open command
- File close command
- Signature add command
- Line delete command
- Xchg command
- Move command
- Unlink command

This Rust implementation adds cdiff-apply unit tests to verify correct
functionality.
2022-01-10 12:18:33 -07:00
Scott Hutton
2b12ebdf3f Improve layout of libclamav_rust directory
Add a top-level Cargo.toml.

Remove the vestigial libclamav_rust/Makefile.am.

Place Rust source under a libclamav_rust/src directory as is canonical
for Rust projects.
2021-11-23 10:43:14 -08:00