From: Chong Yidong <cyd@stupidchicken.com>
To: Sascha Wilde <wilde@sha-bang.de>
Cc: Miles Bader <miles@gnu.org>, Daiki Ueno <ueno@unixuser.org>,
rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Fix needed for communication with gpg-agent
Date: Fri, 23 Feb 2007 14:37:33 -0500 [thread overview]
Message-ID: <87fy8w3bsy.fsf@stupidchicken.com> (raw)
In-Reply-To: <87slcwrfbh.fsf@wheatstone.g10code.de> (Werner Koch's message of "Fri\, 23 Feb 2007 17\:47\:46 +0100")
Werner Koch <wk@gnupg.org> writes:
> On Fri, 23 Feb 2007 17:23, cyd@stupidchicken.com said:
>
>> 2. Documenting the problem in the PGG manual, and recommending using
>> PGG and gpg-agent in X (for Emacs 22 anyway).
>
> This and for non-X one could suggest to use screen and start gpg-agent
> using the option
>
> --keep-tty
In that case, I suggest the following patch to the PGG documentation.
What do people think?
*** emacs/man/pgg.texi.~1.16.~ 2007-01-17 22:03:18.000000000 -0500
--- emacs/man/pgg.texi 2007-02-23 14:35:46.000000000 -0500
***************
*** 229,236 ****
@node Caching passphrase
@section Caching passphrase
! PGG provides a simple passphrase caching mechanism. If you want to
! arrange the interaction, set the variable @code{pgg-read-passphrase}.
@defvar pgg-cache-passphrase
If non-@code{nil}, store passphrases. The default value of this
--- 229,279 ----
@node Caching passphrase
@section Caching passphrase
! When using GnuPG (gpg) as the PGP scheme, we recommend using a program
! called @code{gpg-agent} for caching passphrases@footnote{Actually
! @code{gpg-agent} does not cache passphrases but private keys. On the
! other hand, from a user's point of view, this technical difference
! isn't visible.}.
!
! @defvar pgg-gpg-use-agent
! If non-@code{nil}, attempt to use @code{gpg-agent} whenever possible.
! The default is @code{t}. If @code{gpg-agent} is not running, or GnuPG
! is not the current PGP scheme, PGG's own passphrase-caching mechanism
! is used (see below).
! @end defvar
!
! To use @code{gpg-agent} with PGG, you must first ensure that
! @code{gpg-agent} is running. For example, if you are running in the X
! Window System, you can do this by putting the following line in your
! @file{.xsession} file:
!
! @smallexample
! eval "$(gpg-agent --daemon)"
! @end smallexample
!
! For more details on invoking @code{gpg-agent}, @xref{Invoking
! GPG-AGENT,,,gnupg,Using the GNU Privacy Guard}.
!
! Whenever you perform a PGG operation that requires a GnuPG passphrase,
! GnuPG will contact @code{gpg-agent}, which prompts you for the
! passphrase. Furthermore, @code{gpg-agent} ``caches'' the result, so
! that subsequent uses will not require you to enter the passphrase
! again. (This cache usually expires after a certain time has passed;
! you can change this using the @code{--default-cache-ttl} option when
! invoking @code{gpg-agent}.)
!
! If you are running in a X Window System environment, @code{gpg-agent}
! prompts you for a passphrase by opening a graphical window. However,
! if you are running Emacs on a text terminal, @code{gpg-agent} has
! trouble receiving input from the terminal, since it is being sent to
! Emacs. One workaround for this problem is to run @code{gpg-agent} on
! a different terminal from Emacs, with the @code{--keep-tty} option;
! this tells @code{gpg-agent} use its own terminal to prompt for
! passphrases.
!
! When @code{gpg-agent} is not being used, PGG provides its own
! passphrase caching mechanism, which is controlled by the variable
! @code{pgg-read-passphrase}:
@defvar pgg-cache-passphrase
If non-@code{nil}, store passphrases. The default value of this
***************
*** 243,256 ****
Elapsed time for expiration in seconds.
@end defvar
- @defvar pgg-gpg-use-agent
- When using GnuPG (gpg) as PGP scheme you can use @code{gpg-agent} for
- caching@footnote{Actually @code{gpg-agent} does not cache passphrases
- but private keys. On the other hand, from a users point of view this
- technical difference isn't visible.}. It defaults to @code{t}.
- Setting this to @code{nil} is not recommended.
- @end defvar
-
@node Default user identity
@section Default user identity
--- 286,291 ----
next prev parent reply other threads:[~2007-02-23 19:37 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-17 20:57 Fix needed for communication with gpg-agent Richard Stallman
2007-02-18 17:42 ` Chong Yidong
2007-02-19 23:35 ` Miles Bader
2007-02-20 1:59 ` Chong Yidong
2007-02-22 17:31 ` Chong Yidong
2007-02-22 17:44 ` Chong Yidong
2007-02-22 18:04 ` Werner Koch
2007-02-22 18:40 ` Chong Yidong
2007-02-22 22:00 ` Sascha Wilde
2007-02-22 22:47 ` Chong Yidong
2007-02-23 20:01 ` Sascha Wilde
2007-02-24 8:28 ` Richard Stallman
2007-02-23 22:09 ` Richard Stallman
2007-02-23 23:41 ` Sascha Wilde
2007-02-25 4:06 ` Richard Stallman
2007-02-25 19:32 ` Chong Yidong
2007-02-25 19:50 ` Andreas Schwab
2007-02-25 20:22 ` David Kastrup
2007-02-26 3:27 ` Richard Stallman
2007-02-26 10:27 ` Werner Koch
2007-02-27 7:38 ` Richard Stallman
2007-02-27 8:53 ` Werner Koch
2007-02-28 2:37 ` Richard Stallman
2007-02-23 8:53 ` Werner Koch
2007-02-23 10:27 ` Sascha Wilde
2007-02-23 16:23 ` Chong Yidong
2007-02-23 16:47 ` Werner Koch
2007-02-23 19:37 ` Chong Yidong [this message]
2007-02-23 20:10 ` Sascha Wilde
2007-02-23 22:10 ` Richard Stallman
2007-02-23 22:09 ` Richard Stallman
2007-02-23 23:03 ` Chong Yidong
2007-02-23 17:13 ` Andreas Schwab
2007-02-23 18:30 ` Kim F. Storm
2007-02-23 18:07 ` Stefan Monnier
2007-02-24 14:08 ` Miles Bader
2007-02-23 19:35 ` Richard Stallman
2007-02-20 13:43 ` Richard Stallman
2007-02-20 15:35 ` Chong Yidong
2007-02-21 8:37 ` Richard Stallman
2007-02-21 12:04 ` Chong Yidong
2007-02-22 17:21 ` Richard Stallman
2007-02-20 15:11 ` Kim F. Storm
2007-02-20 15:45 ` Chong Yidong
2007-02-21 8:37 ` Richard Stallman
2007-02-21 13:11 ` Chong Yidong
2007-02-22 7:19 ` Richard Stallman
[not found] ` <E1HJCsN-000541-DO@fencepost.gnu.org>
2007-02-21 22:41 ` Sascha Wilde
2007-02-21 23:15 ` Kim F. Storm
2007-02-22 0:14 ` Chong Yidong
2007-02-22 8:04 ` Werner Koch
2007-02-22 12:09 ` Kim F. Storm
2007-02-22 8:13 ` Werner Koch
2007-02-23 10:22 ` Richard Stallman
2007-02-23 13:20 ` Werner Koch
2007-02-23 16:40 ` Chong Yidong
2007-02-23 22:09 ` Richard Stallman
2007-02-23 19:36 ` Richard Stallman
2007-02-23 23:25 ` Chong Yidong
2007-02-23 23:58 ` Kim F. Storm
2007-02-24 0:19 ` Chong Yidong
2007-02-24 0:57 ` Kim F. Storm
2007-02-24 9:58 ` Sascha Wilde
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fy8w3bsy.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
--cc=rms@gnu.org \
--cc=ueno@unixuser.org \
--cc=wilde@sha-bang.de \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).