[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Documenting gpg-agent
From: |
Daiki Ueno |
Subject: |
Re: Documenting gpg-agent |
Date: |
Tue, 26 Dec 2006 10:01:45 +0900 |
>>>>> In <address@hidden>
>>>>> Richard Stallman <address@hidden> wrote:
> Since allout exploits the use of PGG's passphrase handling functions to
> provide a custom passphrase handling, it's not a bug in PGG or gpg-agent,
> I think.
> I am not convinced of that. He says that PGG was ignoring the
> passphrases that allout passes in. Why isn't that a bug?
I'm sorry for that I misunderstood his explanation and the current
gpg-agent support of PGG. I just looked at the code and found it
actually has a bug. PGG checks whether to use a given passphrase or
gpg-agent two times, for the first time a given passphrase wins, but for
the second time gpg-agent wins. Here is a tiny patch to fix this.
Sascha, can you check this?
Index: lisp/pgg-gpg.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/pgg-gpg.el,v
retrieving revision 1.19
diff -c -r1.19 pgg-gpg.el
*** lisp/pgg-gpg.el 17 Dec 2006 23:18:36 -0000 1.19
--- lisp/pgg-gpg.el 26 Dec 2006 01:00:29 -0000
***************
*** 61,67 ****
"GnuPG ID of your default identity.")
(defun pgg-gpg-process-region (start end passphrase program args)
! (let* ((use-agent (pgg-gpg-use-agent-p))
(output-file-name (pgg-make-temp-file "pgg-output"))
(args
`("--status-fd" "2"
--- 61,67 ----
"GnuPG ID of your default identity.")
(defun pgg-gpg-process-region (start end passphrase program args)
! (let* ((use-agent (and (null passphrase) (pgg-gpg-use-agent-p)))
(output-file-name (pgg-make-temp-file "pgg-output"))
(args
`("--status-fd" "2"
--
Daiki Ueno
- Documenting gpg-agent, Richard Stallman, 2006/12/11
- Re: Documenting gpg-agent, Sascha Wilde, 2006/12/17
- Re: Documenting gpg-agent, Sascha Wilde, 2006/12/17
- Re: Documenting gpg-agent, Richard Stallman, 2006/12/23
- Re: Documenting gpg-agent, Daiki Ueno, 2006/12/24
- Re: Documenting gpg-agent, Richard Stallman, 2006/12/25
- Re: Documenting gpg-agent,
Daiki Ueno <=
- Re: Documenting gpg-agent, Sascha Wilde, 2006/12/28
- Re: Documenting gpg-agent, Ken Manheimer, 2006/12/25
Re: Documenting gpg-agent, Chong Yidong, 2006/12/17
Re: Documenting gpg-agent, Richard Stallman, 2006/12/18
- Re: Documenting gpg-agent, Chong Yidong, 2006/12/23
- Re: Documenting gpg-agent, Richard Stallman, 2006/12/24
- Re: Documenting gpg-agent, Chong Yidong, 2006/12/24
- Re: Documenting gpg-agent, Chong Yidong, 2006/12/25
- Re: Documenting gpg-agent, Richard Stallman, 2006/12/26
- Re: Documenting gpg-agent, Sascha Wilde, 2006/12/31