(void) rpmDoDigest(PGPHASHALGO_MD5, flp->diskPath, 1,
(unsigned char *)buf, NULL);
s = buf;
- (void) headerAddOrAppendEntry(h, RPMTAG_FILEMD5S, RPM_STRING_ARRAY_TYPE,
- &s, 1);
+ (void) headerAddOrAppendEntry(h, RPMTAG_FILEDIGESTS,
+ RPM_STRING_ARRAY_TYPE, &s, 1);
buf[0] = '\0';
if (S_ISLNK(flp->fl_mode)) {
for (i = 0, t = MD5, s = arg; i < 16; i++, t++, s += 2)
*t = (rnibble(s[0]) << 4) | rnibble(s[1]);
- qva->qva_mi = rpmtsInitIterator(ts, RPMTAG_FILEMD5S, MD5, sizeof(MD5));
+ qva->qva_mi = rpmtsInitIterator(ts, RPMTAG_FILEDIGESTS, MD5, sizeof(MD5));
if (qva->qva_mi == NULL) {
rpmlog(RPMLOG_NOTICE, _("no package matches %s: %s\n"),
"fileid", arg);
case RPM_I18NSTRING_TYPE:
case RPM_STRING_ARRAY_TYPE:
str = rpmtdGetString(tagdata);
- if (rpmtdTag(tagdata) == RPMTAG_FILEMD5S) {
+ if (rpmtdTag(tagdata) == RPMTAG_FILEDIGESTS) {
uint8_t * t = bin;
/* Filter out empty MD5 strings. */
if (!(str && *str != '\0'))
fi->digestalgo = PGPHASHALGO_MD5;
fi->digests = NULL;
/* grab hex digests from header and store in binary format */
- if (headerGet(h, RPMTAG_FILEMD5S, &fdigests, HEADERGET_MINMEM)) {
+ if (headerGet(h, RPMTAG_FILEDIGESTS, &fdigests, HEADERGET_MINMEM)) {
const char *fdigest;
size_t diglen = rpmDigestLength(fi->digestalgo);
fi->digests = t = xmalloc(rpmtdCount(&fdigests) * diglen);