Gnus development mailing list
 help / color / mirror / Atom feed
From: "Satyaki Das" <satyakid@stanford.edu>
Cc: ding <ding@gnus.org>
Subject: Re: PGG with multiple GnuPG keys
Date: Sun, 09 Nov 2003 18:20:54 -0800	[thread overview]
Message-ID: <23315.1068430854@chicory.stanford.edu> (raw)
In-Reply-To: <ilusmkxnrlq.fsf@latte.josefsson.org>

Simon Josefsson <jas@extundo.com> writes:

>         The problem is that pgg-gpg.el doesn't know, during
> decryption, that 7C06BDD9 is the same key as the key that eventually
> gets used by the OpenPGP implementation when you request the "satyaki"
> key when signing a message.  So it can't use the cached passphrase for
> "satyaki" that it knows for the 7C06BDD9 key.
> 
> I think the best solution would be to change `pgg-gpg-sign-region' to
> parse gpg's output (GOOD_PASSPHRASE) and find out what the key id was,
> and then cache your passphrase under that hex key id (and under the
> "satyaki" name).  Then the cache will work if you receive a message
> for the 7C06BDD9 key id.  I have installed the patch below.  Does it
> work?

Yes, it does. It caches both "satyaki" and "7C06BDD9" and that is
the right way.

> > So I have now customized pgg-default-user-id to 7C06BDD9 and that
> > avoids the repeated queries for my passphrase. Is this the right
> > solution?
> 
> It is "right" in the sense that it may work for you.  My goal is that
> only very few people will need to configure PGG; the default behaviour
> should be Right.

Yes, that is a worthy goal. I have removed the customization for
pgg-default-user-id now, thanks!

Satyaki



      parent reply	other threads:[~2003-11-10  2:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-08 21:43 Satyaki Das
2003-11-09  4:04 ` Simon Josefsson
2003-11-09 20:16   ` Satyaki Das
2003-11-09 21:45     ` Simon Josefsson
2003-11-09 22:00       ` PGG default values (was: Re: PGG with multiple GnuPG keys) Simon Josefsson
2003-11-09 22:22         ` PGG default values Jesper Harder
2003-11-10  2:31         ` PGG default values (was: Re: PGG with multiple GnuPG keys) Satyaki Das
2003-11-10  3:13           ` PGG default values Simon Josefsson
2003-11-10 15:12         ` Jorge Godoy
2003-11-10 16:19           ` Simon Josefsson
2003-11-10 20:53             ` Jorge Godoy
2003-11-10  2:20       ` Satyaki Das [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23315.1068430854@chicory.stanford.edu \
    --to=satyakid@stanford.edu \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).