diff options
Diffstat (limited to 'g10/keydb.h')
-rw-r--r-- | g10/keydb.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/keydb.h b/g10/keydb.h index 62c6abe36..ae3aeb83f 100644 --- a/g10/keydb.h +++ b/g10/keydb.h @@ -22,6 +22,7 @@ #define G10_KEYDB_H #include "types.h" +#include "packet.h" #include "cipher.h" @@ -35,11 +36,13 @@ void cache_pubkey_cert( PKT_pubkey_cert *pkc ); void cache_user_id( PKT_user_id *uid, u32 *keyid ); int get_pubkey( PKT_pubkey_cert *pkc, u32 *keyid ); int get_pubkey_by_name( PKT_pubkey_cert *pkc, const char *name ); -int get_seckey( RSA_secret_key *skey, u32 *keyid ); +int get_seckey( PKT_seckey_cert *skc, u32 *keyid ); int get_seckey_by_name( PKT_seckey_cert *skc, const char *name ); char*get_user_id_string( u32 *keyid ); - +/*-- keyid.c --*/ +u32 keyid_from_skc( PKT_seckey_cert *skc, u32 *keyid ); +u32 keyid_from_pkc( PKT_pubkey_cert *pkc, u32 *keyid ); |