Add an internal API to dup in-flight digest context from FD
This commit is contained in:
parent
6c7b85e317
commit
43fecc67a4
|
@ -1482,4 +1482,12 @@ void fdFiniDigest(FD_t fd, int id,
|
|||
}
|
||||
}
|
||||
|
||||
DIGEST_CTX fdDupDigest(FD_t fd, int id)
|
||||
{
|
||||
DIGEST_CTX ctx = NULL;
|
||||
|
||||
if (fd && fd->digests)
|
||||
ctx = rpmDigestBundleDupCtx(fd->digests, id);
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ void fdFiniDigest(FD_t fd, int id,
|
|||
size_t * lenp,
|
||||
int asAscii);
|
||||
|
||||
DIGEST_CTX fdDupDigest(FD_t fd, int id);
|
||||
|
||||
/**
|
||||
* Read an entire file into a buffer.
|
||||
* @param fn file name to read
|
||||
|
|
Loading…
Reference in New Issue