aboutsummaryrefslogtreecommitdiffstats
path: root/g10/pubkey-enc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-06-23 15:16:12 +0000
committerWerner Koch <[email protected]>2003-06-23 15:16:12 +0000
commitb7bd5e8088ae0318ca5c82daa60881ac3f7e6e54 (patch)
tree313ae8c00545843ded59e4b6797f516de8997150 /g10/pubkey-enc.c
parentFinished the bulk of changes for gnupg 1.9. This included switching (diff)
downloadgnupg-b7bd5e8088ae0318ca5c82daa60881ac3f7e6e54.tar.gz
gnupg-b7bd5e8088ae0318ca5c82daa60881ac3f7e6e54.zip
Fixes to the libgcrypt switch. Basically works now.
Diffstat (limited to 'g10/pubkey-enc.c')
-rw-r--r--g10/pubkey-enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c
index b5837b24e..b08394e4a 100644
--- a/g10/pubkey-enc.c
+++ b/g10/pubkey-enc.c
@@ -190,7 +190,7 @@ get_it( PKT_pubkey_enc *enc, DEK *dek, PKT_secret_key *sk, u32 *keyid )
write_status(STATUS_RSA_OR_IDEA);
rc = openpgp_cipher_test_algo (dek->algo);
if( rc ) {
- if( !opt.quiet && rc == GPG_ERR_CIPHER_ALGO ) {
+ if( !opt.quiet && gpg_err_code (rc) == GPG_ERR_CIPHER_ALGO ) {
log_info(_("cipher algorithm %d%s is unknown or disabled\n"),
dek->algo, dek->algo == CIPHER_ALGO_IDEA? " (IDEA)":"");
if(dek->algo==CIPHER_ALGO_IDEA)