Files | |
file | digest.c |
file | rpmlib.h |
file | rpmpgp.c |
Routines to handle RFC-2440 detached signatures. | |
file | signature.c |
file | signature.h |
Generate and verify signatures. | |
Typedefs | |
typedef enum sigType_e | sigType |
typedef enum pgpVersion_e | pgpVersion |
Enumerations | |
enum | sigType_e { RPMSIGTYPE_NONE = 0, RPMSIGTYPE_PGP262_1024 = 1, RPMSIGTYPE_BAD = 2, RPMSIGTYPE_MD5 = 3, RPMSIGTYPE_MD5_PGP = 4, RPMSIGTYPE_HEADERSIG = 5, RPMSIGTYPE_DISABLE = 6 } |
enum | pgpVersion_e { PGP_NOTDETECTED = -1, PGP_UNKNOWN = 0, PGP_2 = 2, PGP_5 = 5 } |
Functions | |
Header | rpmNewSignature (void) |
rpmRC | rpmReadSignature (FD_t fd, Header *headerp, sigType sig_type) |
int | rpmWriteSignature (FD_t fd, Header h) |
int | rpmAddSignature (Header h, const char *file, int_32 sigTag, const char *passPhrase) |
int | rpmLookupSignatureType (int action) |
char * | rpmGetPassPhrase (const char *prompt, const int sigTag) |
const char * | rpmDetectPGPVersion (pgpVersion *pgpVer) |
|
Identify PGP versions.
Referenced by checkPassPhrase, makePGPSignature, rpmDetectPGPVersion, and verifyPGPSignature. |
|
Signature types stored in rpm lead. Referenced by rpmReadSignature. |
|
Identify PGP versions.
Definition at line 30 of file signature.h. |
|
Signature types stored in rpm lead.
Definition at line 14 of file signature.h. |
|
Generate a signature of data in file, insert in header. Definition at line 446 of file signature.c. |
|
Return path to pgp executable of given type, or NULL when not found. Definition at line 72 of file signature.c. References int_32. Referenced by checkPassPhrase, main, makePGPSignature, and verifyPGPSignature. |
|
Read a pass phrase from the user. Definition at line 883 of file signature.c. Referenced by main. |
|
Return type of signature in effect for building. Definition at line 35 of file signature.c. |
|
Return new, empty (signature) header instance.
Definition at line 234 of file signature.c. |
|
Read (and verify header+archive size) signature header. If an old-style signature is found, we emulate a new style one.
Definition at line 144 of file signature.c. Referenced by main, readPackageHeaders, rpmCheckSig, and rpmReSign. |
|
Write signature header.
Definition at line 214 of file signature.c. |