diff options
author | Werner Koch <wk@gnupg.org> | 2009-11-23 20:18:04 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2009-11-23 20:18:04 +0100 |
commit | cf2ec5673f02ddf3a4910ec47b476351dd68c243 (patch) | |
tree | 4e59734e24208f5d90dcc96f9d98c822860fbbc7 /g10/pubkey-enc.c | |
parent | Change fallback keysize to 2048 (diff) | |
download | gnupg2-cf2ec5673f02ddf3a4910ec47b476351dd68c243.tar.xz gnupg2-cf2ec5673f02ddf3a4910ec47b476351dd68c243.zip |
Add gpgconf related dummy options default_pubkey_algo.
Add option --skip-hidden-recipients
Comment updates.
Diffstat (limited to 'g10/pubkey-enc.c')
-rw-r--r-- | g10/pubkey-enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c index c0167b12e..fedf4d9a9 100644 --- a/g10/pubkey-enc.c +++ b/g10/pubkey-enc.c @@ -85,6 +85,8 @@ get_session_key( PKT_pubkey_enc *k, DEK *dek ) if( !(rc = get_seckey( sk, k->keyid )) ) rc = get_it( k, dek, sk, k->keyid ); } + else if (opt.skip_hidden_recipients) + rc = gpg_error (GPG_ERR_NO_SECKEY); else { /* anonymous receiver: Try all available secret keys */ void *enum_context = NULL; u32 keyid[2]; |