From cf2ec5673f02ddf3a4910ec47b476351dd68c243 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 23 Nov 2009 19:18:04 +0000 Subject: Add gpgconf related dummy options default_pubkey_algo. Add option --skip-hidden-recipients Comment updates. --- g10/pubkey-enc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'g10/pubkey-enc.c') 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]; -- cgit v1.2.3