rpm  4.9.1.3
rpmkeyring.h
Go to the documentation of this file.
00001 #ifndef _RPMKEYRING_H
00002 #define _RPMKEYRING_H
00003 
00008 #include <rpm/rpmtypes.h>
00009 #include <rpm/rpmpgp.h>
00010 
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014 
00019 rpmKeyring rpmKeyringNew(void);
00020 
00025 rpmKeyring rpmKeyringFree(rpmKeyring keyring);
00026 
00033 int rpmKeyringAddKey(rpmKeyring keyring, rpmPubkey key);
00034 
00041 rpmRC rpmKeyringLookup(rpmKeyring keyring, pgpDig sig);
00042 
00048 rpmKeyring rpmKeyringLink(rpmKeyring keyring);
00049 
00056 rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen);
00057 
00063 rpmPubkey rpmPubkeyRead(const char *filename);
00064 
00070 rpmPubkey rpmPubkeyFree(rpmPubkey key);
00071 
00077 rpmPubkey rpmPubkeyLink(rpmPubkey key);
00078 
00084 pgpDig rpmPubkeyDig(rpmPubkey key);
00085 
00091 char * rpmPubkeyBase64(rpmPubkey key);
00092 
00093 #ifdef __cplusplus
00094 }
00095 #endif
00096 #endif /* _RPMKEYDB_H */