diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-14 15:59:39 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-14 15:59:39 +0300 |
commit | fa0337c9b64d69b3a4e50d810ec63c7798cad6c6 (patch) | |
tree | 9885aedd6ab67aeb9f1bf5b4e8c61f183af490d2 /rpmio/digest.c | |
parent | c716382ee899759b522b1b63e8a2acde9ca33f65 (diff) | |
download | librpm-tizen-fa0337c9b64d69b3a4e50d810ec63c7798cad6c6.tar.gz librpm-tizen-fa0337c9b64d69b3a4e50d810ec63c7798cad6c6.tar.bz2 librpm-tizen-fa0337c9b64d69b3a4e50d810ec63c7798cad6c6.zip |
Move fdDigest*() to rpmio.c where they better belong
Diffstat (limited to 'rpmio/digest.c')
-rw-r--r-- | rpmio/digest.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/rpmio/digest.c b/rpmio/digest.c index 48036891a..cc06fda55 100644 --- a/rpmio/digest.c +++ b/rpmio/digest.c @@ -244,33 +244,3 @@ DPRINTF((stderr, "*** Final(%p,%p,%p,%zd) hashctx %p digest %p\n", ctx, datap, l return 0; } -void fdInitDigest(FD_t fd, pgpHashAlgo hashalgo, int flags) -{ - if (fd->digests == NULL) { - fd->digests = rpmDigestBundleNew(); - } - fdstat_enter(fd, FDSTAT_DIGEST); - rpmDigestBundleAdd(fd->digests, hashalgo, flags); - fdstat_exit(fd, FDSTAT_DIGEST, (ssize_t) 0); -} - -void fdUpdateDigests(FD_t fd, const unsigned char * buf, size_t buflen) -{ - if (fd && fd->digests) { - fdstat_enter(fd, FDSTAT_DIGEST); - rpmDigestBundleUpdate(fd->digests, buf, buflen); - fdstat_exit(fd, FDSTAT_DIGEST, (ssize_t) buflen); - } -} - -void fdFiniDigest(FD_t fd, pgpHashAlgo hashalgo, - void ** datap, - size_t * lenp, - int asAscii) -{ - if (fd && fd->digests) { - fdstat_enter(fd, FDSTAT_DIGEST); - rpmDigestBundleFinal(fd->digests, hashalgo, datap, lenp, asAscii); - fdstat_exit(fd, FDSTAT_DIGEST, (ssize_t) 0); - } -} |