Commits


remove now unused sha1 handling from inflate and deflate both were changed to use the new got_hash APIs.


add some helper functions to compute hashes This adds a set of functions to abstract over SHA1Init, SHA1Update, SHA1Final, their respective SHA256 variants and how to compare digests. Replace all the SHA1*() usage with the new APIs. It's a preparatory step for sha256 handling. ok stsp@


match the unsigned char type used by the zlib interface ok stsp


verify object ID checksums while loose objects are being accessed


add checksum parameters to got_inflate functions which did not provide them yet


make got-index-pack compute and verify the pack file's SHA1 checksum


extract large objects to a temporary file in got-index-pack


add mmap support to got-index-pack


do not buffer more data than necessary in got_inflate_to_mem_fd()


avoid re-reading the entirety of an object's data to calculate the CRC


add optional 'consumed' output parameter to got_inflate_to_mem_fd()


add optional 'consumed' output parameter to got_inflate_to_mem()


increase GOT_INFLATE_BUFSIZE (trades memory usage for speed)


rename got_zstream_* to got_inflate_*


rename zbuf to inflate