1 #ifndef H_RPMIO_INTERNAL
2 #define H_RPMIO_INTERNAL
5 * \file rpmio/rpmio_internal.h
9 #include <rpm/rpmpgp.h>
15 void fdSetBundle(FD_t fd, rpmDigestBundle bundle);
16 rpmDigestBundle fdGetBundle(FD_t fd);
19 * Attach digest to fd.
21 void fdInitDigest(FD_t fd, int hashalgo, rpmDigestFlags flags);
25 void fdFiniDigest(FD_t fd, int hashalgo,
31 * Read an entire file into a buffer.
32 * @param fn file name to read
33 * @retval *bp (malloc'd) buffer address
34 * @retval *blenp (malloc'd) buffer length
35 * @return 0 on success
37 int rpmioSlurp(const char * fn,
38 uint8_t ** bp, ssize_t * blenp);
44 #endif /* H_RPMIO_INTERNAL */