diff options
author | David Shaw <[email protected]> | 2002-10-04 22:12:09 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-10-04 22:12:09 +0000 |
commit | 1fed5c87f0e792599b6d71fad908f60b27b6446b (patch) | |
tree | 30bc39c743f89d4c93ae67cdc01ff5ffc71fd6e0 /g10/getkey.c | |
parent | * import.c (import_keys_internal): s/inp/inp2/ to avoid shadowing (diff) | |
download | gnupg-1fed5c87f0e792599b6d71fad908f60b27b6446b.tar.gz gnupg-1fed5c87f0e792599b6d71fad908f60b27b6446b.zip |
* getkey.c (get_pubkey_direct): Don't cache keys retrieved via this
function as they may not have all their fields filled in.
* sig-check.c (signature_check2): Use new is_primary flag to check rather
than comparing main_keyid with keyid as this still works in the case of a
not fully filled in pk.
Diffstat (limited to 'g10/getkey.c')
-rw-r--r-- | g10/getkey.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index a123f5fdd..991b98d2f 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -417,7 +417,10 @@ get_pubkey_direct (PKT_public_key *pk, u32 *keyid) || keyblock->pkt->pkttype == PKT_PUBLIC_SUBKEY ); copy_public_key (pk, keyblock->pkt->pkt.public_key ); release_kbnode (keyblock); - cache_public_key (pk); + + /* Not caching key here since it won't have all of the fields + properly set. */ + return 0; } |