|
@@ -51,6 +51,9 @@ struct buffer_data {
|
|
|
int type;
|
|
int type;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+# define buffer_md5(buf, hash, limit) \
|
|
|
|
|
+ buffer_hash(buf, hash, BUFFER_WRITE_MD5, limit)
|
|
|
|
|
+
|
|
|
#if HAVE_C99
|
|
#if HAVE_C99
|
|
|
# define fd_md5(fd, hash, limit, ...) \
|
|
# define fd_md5(fd, hash, limit, ...) \
|
|
|
buffer_copy_IntPtr(fd, BUFFER_READ_FD, hash, BUFFER_WRITE_MD5, \
|
|
buffer_copy_IntPtr(fd, BUFFER_READ_FD, hash, BUFFER_WRITE_MD5, \
|
|
@@ -135,6 +138,7 @@ off_t buffer_copy_IntPtr(int i, int typeIn, void *p, int typeOut,
|
|
|
off_t buffer_copy_IntInt(int i1, int typeIn, int i2, int typeOut,
|
|
off_t buffer_copy_IntInt(int i1, int typeIn, int i2, int typeOut,
|
|
|
off_t limit, const char *desc,
|
|
off_t limit, const char *desc,
|
|
|
...) DPKG_ATTR_PRINTF(6);
|
|
...) DPKG_ATTR_PRINTF(6);
|
|
|
|
|
+off_t buffer_hash(const void *buf, void *hash, int typeOut, off_t length);
|
|
|
|
|
|
|
|
off_t buffer_write(buffer_data_t data, const void *buf,
|
|
off_t buffer_write(buffer_data_t data, const void *buf,
|
|
|
off_t length, const char *desc);
|
|
off_t length, const char *desc);
|