summaryrefslogtreecommitdiff
path: root/mksum.c
Commit message (Collapse)AuthorAgeFilesLines
* Move *.c *.h project files into src dirAdam Schubert2015-05-111-186/+0
|
* Include config.h properlyAdam Schubert2015-05-091-1/+1
|
* More comments and typesafety on file magic numbersMartin Pool2015-01-231-2/+2
|
* Passing strong_sum_len 0 to rs_sig_begin should select the hash's nativeMartin Pool2014-11-011-13/+19
| | | | length.
* Fix broken compatibility tests for MD4 mode.Martin Pool2014-10-121-8/+24
| | | | | | | | | | rdiff sig defaults (temporarily) back to MD4, but gains an option to control this. In MD4, truncate the hash the same way that previous versions did. Add a sig_magic parameter to rs_sig_begin and rs_sig_file to let callers choose a version. Add NEWS about md4 weakness.
* Merge branch 'master' into blake2, to get test suite fixes.Martin Pool2014-10-121-1/+1
|\
| * Update my email addressMartin Pool2014-10-121-1/+1
| |
* | Added blake2 supportMichael Samuel2014-09-021-5/+14
|/
* Make sure printf formats and arguments are consistent for size_tMartin Pool2004-09-101-1/+1
|
* Changed the include "rsync.h" to include "librsync.h".Wayne Davison2003-06-121-1/+1
|
* Do stats on signatures.Martin Pool2001-03-181-8/+23
| | | | | Add rs_trace_enabled() so that we can avoid spending too much time generating trace output if it's not going to be used.
* Rename rs_blow_* to rs_tube_*.Martin Pool2001-03-121-1/+1
| | | | | Rename rs_blow_literal to rs_tube_write, because it otherwise tends to get confused with LITERAL commands.
* It's no longer necessary to call rs_buffers_init on a stream beforeMartin Pool2001-03-111-7/+3
| | | | | | | | | | | | | starting to use it: all the internal data is kept in the job, not in the stream. Rename rs_stream_t to rs_buffers_t, a more obvious name. Pass the buffers to every rs_job_iter() call, rather than setting it at startup. Similarly for all the _begin() functions. rs_job_new also takes the initial state function. Return RS_PARAM_ERROR when library is misused.
* Keep all stream implementation data in the rs_job_t, not in a specialMartin Pool2001-03-051-16/+16
| | | | | | | | | rs_simpl structure. This means we no longer need to call rs_stream_init(), and many nonblocking IO functions need to be passed the job, not the stream pointer. Also get rid of the stream dogtag, which is no longer adding much protection. s/HS_/RS_/ to finish renaming.
* rename to librsync, and call everything rs_*.Martin Pool2001-03-051-31/+31
| | | | Move man pages into parent directory.
* typedef and header fixes to build cleanly onMartin Pool2001-03-041-4/+4
| | | | | | Alpha RedHat 7.0 at SourceForge. Use long or long long as hs_long_t, depending on which is available. Call this 0.9.1dev2.
* Remove dependency on stdint.h and other files that may not be presentMartin Pool2001-03-041-14/+11
| | | | | | | | | | on other platforms. Change many integer types to work properly with this. Suggestion by Poul-Henning Kamp <phk@freebsd.org>. Add HS_INTERNAL_ERROR code. Rewrite netint code to just simply bang out bytes, rather than using endian macros.
* Start to put back in support for statistics.Martin Pool2001-03-011-4/+4
|
* Better trace.Martin Pool2001-02-271-24/+21
| | | | Better handling of signature generation near end of input.
* Whether eof has been seen on input should be a property of the stream.Martin Pool2001-02-271-2/+2
| | | | Use this to properly handle expected EOF on signatures.
* Jobs include a name string.Martin Pool2001-02-271-1/+1
|
* Add space in a hs_job_t to hold partially-read checksum; updateMartin Pool2001-02-271-0/+1
| | | | dependencies to declare this.
* Rename hs_sumset to hs_signature for consistency.Martin Pool2001-02-271-2/+5
| | | | Put handling of hs_job_s_complete fully into job.c.
* Include block_len and strong_sum_len in signature file.Martin Pool2001-02-261-13/+18
|
* Rename HS_OK to HS_DONE and HS_RUN_OK to HS_RUNNING to be moreMartin Pool2001-02-261-3/+3
| | | | descriptive.
* Doc.Martin Pool2001-02-261-15/+20
| | | | Rename 'mksum' to 'sig'.
* More API docs.Martin Pool2001-02-251-4/+1
| | | | | Don't rely on syslog. Generate a smaller set of docs that only exposes hsync.h.
* Start to add API documentation using Doxygen.Martin Pool2001-02-251-4/+5
|
* Draw your own conclusionsMartin Pool2001-02-141-1/+1
|
* Switch to using popt.Martin Pool2001-02-121-10/+1
| | | | | | | | | Start implementing hs_file_readsum. Move hs_mksum_s_complete to be a generic hs_job_s_complete that all types of stream processor can use. Fix typo in trace.c. Allow hs_whole_run to work on operations that do only input or only output.
* Change to a generic hs_job_t class so we can share the iterator code.Martin Pool2001-02-071-78/+39
| | | | | | | | | | | Drop HSFILE interface; not very useful at the moment. Therefore we could drop streamfile and other over-complex code as well. Doc. Generate strong checksums as well as weak; update the test case to reflect this. Drop leading underscores on function names; they're not proving very useful. rdiff/rsum are currently broken, but I wanted to commit the new library interface anyhow. Started changing towards libpopt.
* Nonoptimal stream-based mksum code.Martin Pool2000-12-191-31/+96
|
* Lots of random hacking on the new mem-mem stream interface. ApplyingMartin Pool2000-12-121-114/+38
| | | | | | | deltas kinda slightly works with the new API. Give domain-credit to Linuxcare; change to Linux code style cause every emacs understands it.
* Further fiddling with the streams model.Martin Pool2000-12-071-6/+13
|
* Start of a huge redesign towards 0.6.0. This version will natively doMartin Pool2000-11-301-55/+58
| | | | | | | | only memory-to-memory options, like zlib. Lots of code has been snipped out or disabled. Some man pages added. I like man pages, but not troff. Test cases are now *.test. Drivers are *.driver.
* Start adding vtr, which is mapptr-based decoding. Not complete yet.Martin Pool2000-08-071-0/+2
| | | | | | | | | Use snprintf, and supply our own replacement if there is not one on the system. Add new test pattern `decoder' to genmaptest which produces a pattern similar to vtr decoding. Add new map_copy function to intelligently copy through data from a mapptr.
* Drop use of libtool.Martin Pool2000-08-061-2/+2
| | | | | | | | Automatically generate a table of commands so that we can decode them more easily. Implement mapptr based decoding of commands, and change the tests to use this. (Full decode still uses the real code.) Remove half-hearted large file support.
* Changing libhsync to GNU LGPL, so update statements of license/warranty.Martin Pool2000-08-041-6/+6
| | | | Start to phase out filebuf and inbuf in favour of mapptr.
* More test cases.Martin Pool2000-06-261-1/+1
| | | | | | | | | | | | | Clean up autoconfig: use 64-bit offsets if possible, use GCC warnings if available. Be more fussy about using the right integer types. Clean up test directories on successful completion. Add -D and -x options to test driver script; make sure it is executable on install. Add ':' recognition to hsmapread. Add more map test strategies to genmaptest. Refactor mapptr code. Add test-pairs: pairs of files filtered through various edits.
* Update towards a clean build on Solaris 64bit with SUNWspro CC. InMartin Pool2000-06-121-20/+30
| | | | | | particular, distinguish byte_t from char to clear up signed-ness warnings; and fix some gcc dependencies in the trace code. This does not quite work there yet.
* Clean up test scripts.Martin Pool2000-06-011-66/+57
| | | | | | Make tests assume success after a certain number of executions so that they don't run for too long. Indent.
* Further implementation of the nad algorithm -- at the moment itMartin Pool2000-05-221-7/+3
| | | | | doesn't actually search, but it does do everything else, and it emits literal data correctly.
* Add a new nonblocking checksum generator, mksum, and a command-lineMartin Pool2000-05-211-0/+188
driver, hsmksum. Split out code for manipulating sum_set into its own file.