diff options
author | Werner Koch <[email protected]> | 1998-11-08 17:23:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-11-08 17:23:14 +0000 |
commit | 35c10545075da2353511ed83f7b5bb664f055df4 (patch) | |
tree | c92b3dc1ff2306194942b0d28e16e9ea8d28846e /g10/keydb.h | |
parent | overhauled the trustdb stuff (diff) | |
download | gnupg-0-4-3.tar.gz gnupg-0-4-3.zip |
ready to release 0.4.3V0-4-3
Diffstat (limited to '')
-rw-r--r-- | g10/keydb.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/g10/keydb.h b/g10/keydb.h index f93d05a2c..5b517d76d 100644 --- a/g10/keydb.h +++ b/g10/keydb.h @@ -31,6 +31,10 @@ #define MAX_FINGERPRINT_LEN 20 +typedef struct getkey_ctx_s *GETKEY_CTX; +#ifndef DEFINES_GETKEY_CTX +struct getkey_ctx_s { char hidden[1]; }; +#endif /**************** * A Keyblock is all packets which form an entire certificate; @@ -124,8 +128,13 @@ void set_next_passphrase( const char *s ); char *get_last_passphrase(void); /*-- getkey.c --*/ +int classify_user_id( const char *name, u32 *keyid, byte *fprint, + const char **retstr, size_t *retlen ); int get_pubkey( PKT_public_key *pk, u32 *keyid ); -int get_pubkey_byname( PKT_public_key *pk, const char *name ); +int get_pubkey_byname( GETKEY_CTX *rx, PKT_public_key *pk, + const char *name, KBNODE *ret_keyblock ); +int get_pubkey_next( GETKEY_CTX ctx, PKT_public_key *pk, KBNODE *ret_keyblock ); +void get_pubkey_end( GETKEY_CTX ctx ); int get_seckey( PKT_secret_key *sk, u32 *keyid ); int get_pubkey_byfprint( PKT_public_key *pk, const byte *fprint, size_t fprint_len ); |