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 00055 rpmKeyring rpmKeyringUnlink(rpmKeyring keyring); 00056 00063 rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen); 00064 00070 rpmPubkey rpmPubkeyRead(const char *filename); 00071 00077 rpmPubkey rpmPubkeyFree(rpmPubkey key); 00078 00084 rpmPubkey rpmPubkeyLink(rpmPubkey key); 00085 00091 rpmPubkey rpmPubkeyUnlink(rpmPubkey key); 00092 00098 pgpDig rpmPubkeyDig(rpmPubkey key); 00099 00105 char * rpmPubkeyBase64(rpmPubkey key); 00106 00107 #ifdef __cplusplus 00108 } 00109 #endif 00110 #endif /* _RPMKEYDB_H */