rpm  4.10.0
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 
00050 rpmRC rpmKeyringVerifySig(rpmKeyring keyring, pgpDigParams sig, DIGEST_CTX ctx);
00051 
00057 rpmKeyring rpmKeyringLink(rpmKeyring keyring);
00058 
00065 rpmPubkey rpmPubkeyNew(const uint8_t *pkt, size_t pktlen);
00066 
00072 rpmPubkey rpmPubkeyRead(const char *filename);
00073 
00079 rpmPubkey rpmPubkeyFree(rpmPubkey key);
00080 
00086 rpmPubkey rpmPubkeyLink(rpmPubkey key);
00087 
00093 pgpDig rpmPubkeyDig(rpmPubkey key);
00094 
00100 char * rpmPubkeyBase64(rpmPubkey key);
00101 
00102 #ifdef __cplusplus
00103 }
00104 #endif
00105 #endif /* _RPMKEYDB_H */