Return digest and size of a file.
- Parameters
-
dalgo | digest algorithm to use |
fn | file name |
- Return values
-
- Parameters
-
dflags | 0x1 = return ASCII 0x2 = do HMAC |
- Return values
-
*fsizep | file size pointer (or NULL) |
- Returns
- 0 on success, 1 on error
Definition at line 178 of file legacy.c.
References _free(), buf, ctx, dlen, exit, Fclose(), fd, fdDup(), fdFiniDigest(), fdInitDigest(), fdInitHmac(), fdno, Ferror(), Fopen(), Fread(), hmackey, NULL, open_dso(), path, pid, rc, RPMDIGEST_NONE, rpmDigestFinal(), rpmDigestInit(), rpmDigestUpdate(), rpmHmacInit(), status, URL_IS_DASH, URL_IS_FTP, URL_IS_HKP, URL_IS_HTTP, URL_IS_HTTPS, URL_IS_PATH, URL_IS_UNKNOWN, urlPath(), void, and xx.
Referenced by genCpioListAndHeader(), handleOverlappedFiles(), rpmAddSignature(), rpmfiDecideFate(), and rpmvfVerify().