]> git.ipfire.org Git - thirdparty/git.git/blobdiff - csum-file.h
Merge branch 'tb/midx-use-checksum'
[thirdparty/git.git] / csum-file.h
index 3044bd19ab657e6636c08341c91119925dcc94b3..291215b34eb12bee5583913ad93388c1f9175c0f 100644 (file)
@@ -44,6 +44,9 @@ void hashflush(struct hashfile *f);
 void crc32_begin(struct hashfile *);
 uint32_t crc32_end(struct hashfile *);
 
+/* Verify checksum validity while reading. Returns non-zero on success. */
+int hashfile_checksum_valid(const unsigned char *data, size_t len);
+
 /*
  * Returns the total number of bytes fed to the hashfile so far (including ones
  * that have not been written out to the descriptor yet).