all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: derkire@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs interface with gpg-agent stopped working (or stopped caching passphrase)
Date: Sat, 03 Sep 2016 17:52:39 +0300	[thread overview]
Message-ID: <87eg51c9xk.fsf@iki.fi> (raw)
In-Reply-To: <7df56913-7dfd-4789-a984-48b34f576c2f@googlegroups.com> (derkire@gmail.com's message of "Fri, 2 Sep 2016 23:32:11 -0700 (PDT)")

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

derkire@gmail.com [2016-09-02 23:32:11-07] wrote:

> Expected (old) behavior: When opening (find-file) files in emacs,
> emacs contacts the gpg-agent, and a GUI window is popped to enter the
> passphrase. This is then enough to decrypt ALL additional .gpg files
> opened by emacs for the next 5 minutes.
>
> Actual (new) behavior: emacs instead asks for passphrase in the
> minibuffer (not GUI popup!), and the file will decrypt, BUT the PP has
> to be entered each time a new file is opened. That is, no more
> 5min/300sec window of caching. I interpret this to mean that the
> interface between emacs and the gpg-agent is not functioning
> correctly.

It looks to me that your Emacs is now using old GPG 1.4 and not GPG 2.x
version. Emacs has some magic code to choose which one to use but the
logic is unknown to me. There is also variable epg-gpg-program.

GPG 1.4 will connect to agent if ~/.gnupg/gpg.conf file has this line:

    use-agent

GPG 2.x don't need that option because they always connect to the agent.


-- 
/// Teemu Likonen   - .-..   <https://github.com/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  parent reply	other threads:[~2016-09-03 14:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-03  6:32 emacs interface with gpg-agent stopped working (or stopped caching passphrase) derkire
2016-09-03  6:40 ` derkire
2016-09-03  7:09   ` Eli Zaretskii
2016-09-03 14:52 ` Teemu Likonen [this message]
2016-09-03 15:04   ` Teemu Likonen
2016-09-03 18:50   ` Derk Ire
2016-09-03 19:24   ` Derk Ire
  -- strict thread matches above, loose matches on Subject: below --
2016-09-03 18:45 Reik Reid

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=87eg51c9xk.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=derkire@gmail.com \
    --cc=help-gnu-emacs@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.