aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-05-04 18:49:26 +0000
committerWerner Koch <[email protected]>1998-05-04 18:49:26 +0000
commit42b03f6ebdda25a5b61db72cf9aecaaf6788de16 (patch)
treea36d2fe06b19dca6f64009010e2a731b45e6b886 /g10/getkey.c
parentfixed last passphrase bug (diff)
downloadgnupg-42b03f6ebdda25a5b61db72cf9aecaaf6788de16.tar.gz
gnupg-42b03f6ebdda25a5b61db72cf9aecaaf6788de16.zip
new releaseV0-2-17
Diffstat (limited to 'g10/getkey.c')
-rw-r--r--g10/getkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 3edadfe92..9591502e3 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -164,9 +164,9 @@ cache_public_cert( PKT_public_cert *pkc )
pkc_cache_entry_t ce;
u32 keyid[2];
- if( pkc->pubkey_algo == PUBKEY_ALGO_ELGAMAL
+ if( is_ELGAMAL(pkc->pubkey_algo)
|| pkc->pubkey_algo == PUBKEY_ALGO_DSA
- || pkc->pubkey_algo == PUBKEY_ALGO_RSA ) {
+ || is_RSA(pkc->pubkey_algo) ) {
keyid_from_pkc( pkc, keyid );
}
else