|
rpm 5.3.7
|
#include "system.h"#include "rpmio_internal.h"#include <rpmmacro.h>#include "misc.h"#include "legacy.h"#include "debug.h"
Go to the source code of this file.
Defines | |
| #define | alloca_strdup(_s) strcpy(alloca(strlen(_s)+1), (_s)) |
Functions | |
| static int | open_dso (const char *path, pid_t *pidp, size_t *fsizep) |
| Open a file descriptor to verify file MD5 and size. | |
| int | dodigest (int dalgo, const char *fn, unsigned char *digest, unsigned dflags, size_t *fsizep) |
| Return digest and size of a file. | |
Variables | |
| static const char | hmackey [] = "orboDeJITITejsirpADONivirpUkvarP" |
Definition in file legacy.c.
| #define alloca_strdup | ( | _s | ) | strcpy(alloca(strlen(_s)+1), (_s)) |
| int dodigest | ( | int | dalgo, |
| const char * | fn, | ||
| unsigned char * | digest, | ||
| unsigned | dflags, | ||
| size_t * | fsizep | ||
| ) |
Return digest and size of a file.
| dalgo | digest algorithm to use |
| fn | file name |
| *digest | file digest |
| dflags | 0x1 = return ASCII 0x2 = do HMAC |
| *fsizep | file size pointer (or NULL) |
Definition at line 161 of file legacy.c.
References _free(), Fclose(), fdDup(), fdFiniDigest(), fdInitDigest(), fdInitHmac(), Ferror(), Fopen(), Fread(), hmackey, open_dso(), RPMDIGEST_NONE, rpmDigestFinal(), rpmDigestInit(), rpmDigestUpdate(), rpmHmacInit(), URL_IS_DASH, URL_IS_FTP, URL_IS_HKP, URL_IS_HTTP, URL_IS_HTTPS, URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().
Referenced by genCpioListAndHeader(), handleOverlappedFiles(), rpmAddSignature(), rpmfiDecideFate(), and rpmvfVerify().
| static int open_dso | ( | const char * | path, |
| pid_t * | pidp, | ||
| size_t * | fsizep | ||
| ) | [static] |
Open a file descriptor to verify file MD5 and size.
| path | file path |
| pidp | prelink helper pid or 0 |
| fsizep | file size |
Definition at line 49 of file legacy.c.
References environ, rpmExpand(), unsetenv(), and VALGRIND_HG_CLEAN_MEMORY.
Referenced by dodigest().
const char hmackey[] = "orboDeJITITejsirpADONivirpUkvarP" [static] |
Definition at line 159 of file legacy.c.
Referenced by dodigest().
1.7.3