rpm
4.5
|
Generate and verify signatures. More...
#include <header.h>
Go to the source code of this file.
Macros | |
#define | RPMLOOKUPSIG_QUERY 0 /* Lookup type in effect */ |
Possible actions for rpmLookupSignatureType() | |
#define | RPMLOOKUPSIG_DISABLE 1 /* Disable (--sign was not given) */ |
#define | RPMLOOKUPSIG_ENABLE 2 /* Re-enable %_signature */ |
Typedefs | |
typedef enum sigType_e | sigType |
Signature types stored in rpm lead. | |
typedef enum pgpVersion_e | pgpVersion |
Identify PGP versions. | |
Enumerations | |
enum | sigType_e { RPMSIGTYPE_HEADERSIG = 5 } |
Signature types stored in rpm lead. More... | |
enum | pgpVersion_e { PGP_NOTDETECTED = -1, PGP_UNKNOWN = 0, PGP_2 = 2, PGP_5 = 5 } |
Identify PGP versions. More... | |
Functions | |
Header | rpmNewSignature (void) |
Return new, empty (signature) header instance. | |
rpmRC | rpmReadSignature (FD_t fd, Header *sighp, sigType sig_type, const char **msg) |
Read (and verify header+payload size) signature header. | |
int | rpmWriteSignature (FD_t fd, Header sigh) |
Write signature header. | |
int | rpmAddSignature (Header sigh, const char *file, int_32 sigTag, const char *passPhrase) |
Generate signature(s) from a header+payload file, save in signature header. | |
int | rpmLookupSignatureType (int action) |
Return type of signature needed for signing/building. | |
char * | rpmGetPassPhrase (const char *prompt, const int sigTag) |
Read a pass phrase using getpass(3), confirm with gpg/pgp helper binaries. | |
const char * | rpmDetectPGPVersion (pgpVersion *pgpVer) |
Return path to pgp executable of given type, or NULL when not found. | |
Generate and verify signatures.
Definition in file signature.h.
#define RPMLOOKUPSIG_DISABLE 1 /* Disable (--sign was not given) */ |
Definition at line 83 of file signature.h.
Referenced by main(), and rpmLookupSignatureType().
#define RPMLOOKUPSIG_ENABLE 2 /* Re-enable %_signature */ |
Definition at line 84 of file signature.h.
Referenced by rpmLookupSignatureType().
#define RPMLOOKUPSIG_QUERY 0 /* Lookup type in effect */ |
Possible actions for rpmLookupSignatureType()
Definition at line 82 of file signature.h.
Referenced by main(), rpmLookupSignatureType(), rpmReSign(), and writeRPM().