all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: "Neal H. Walfield" <neal@walfield.org>
Cc: Daiki Ueno <ueno@unixuser.org>, Michael Olson <mwolson@gnu.org>,
	emacs-devel@gnu.org
Subject: Re: epg.el: epg--status-GET_LINE not working?
Date: Thu, 06 Jul 2017 23:05:57 +0300	[thread overview]
Message-ID: <87tw2pnxei.fsf@mithlond.arda> (raw)
In-Reply-To: <874lupwehx.wl-neal@walfield.org> (Neal H. Walfield's message of "Thu, 06 Jul 2017 21:29:30 +0200")

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

Neal H. Walfield [2017-07-06 21:29:30+02] wrote:

> At Mon, 26 Jun 2017 09:58:43 +0300, Teemu Likonen wrote:
>> Gpg is called with a command-line like this:
>> 
>>     GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 /usr/bin/gpg
>>     --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --output
>>     /tmp/epg-output983w_C --verify -- /tmp/epg-signature9839JJ -
>> 
>> Note that "--command-fd 0" expects interactive commands from the file
>> descriptor 0 (standard input). Such commands are handled by
>> epg--status-GET_LINE function which is triggered when "--status-fd 1"
>> output contains GET_LINE command. But also note the "-" at the end of
>> the command line. It means that the message contents is also being
>> received from the file descriptor 0 (standard input). Getting both
>> the message's contents and --command-fd's GET_LINE input from
>> stardard input stream doesn't work, or so it seems in my tests.
>
> If you type in 'a' at the minibuffer prompt (for accept once), does
> epg continue?  It does for me.

Sometimes. This works:

    M-x epa-verify-file RET signature-file.asc RET

I get tofu.conflict minibuffer prompt, can answer (e.g., "a") and gpg
behaves correctly (accepts once).

But this doesn't work:

    M-x epa-verify-region RET

I get the same minibuffer prompt but my input doesn't seem to matter.
*Messages* buffer always says:

    error in process filter: epg--status-GET_LINE: Process epg not running
    error in process filter: Process epg not running

Also, verifying a message in Gnus does the same. I get the minibuffer
prompt but *Messages* buffer always says:

    error in process filter: epg--status-GET_LINE: Process epg not running
    error in process filter: Process epg not running

And *epg-debug* buffer:

    GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 /usr/bin/gpg
    --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --output
    /tmp/epg-output9534QZ --verify -- /tmp/epg-signature953Fbf -

    [...]

    [GNUPG:] GET_LINE tofu.conflict
    [GNUPG:] GOT_IT
    [GNUPG:] GET_LINE tofu.conflict
    [GNUPG:] GOT_IT
    [GNUPG:] GET_LINE tofu.conflict
    [GNUPG:] GOT_IT
    [GNUPG:] GET_LINE tofu.conflict


I'm using Gpg 2.1.18 and Emacs 25.1, both as packaged in Debian 9.

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

      reply	other threads:[~2017-07-06 20:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26  6:58 epg.el: epg--status-GET_LINE not working? Teemu Likonen
2017-06-26  7:30 ` Daiki Ueno
2017-06-26  7:45   ` Teemu Likonen
2017-07-05  5:21   ` Teemu Likonen
2017-07-05 16:25     ` Daiki Ueno
2017-07-05 19:03       ` Teemu Likonen
2017-07-06 19:42         ` Neal H. Walfield
2017-07-05 23:03       ` Richard Stallman
2017-07-06 19:40       ` Neal H. Walfield
2017-07-06 19:37   ` Neal H. Walfield
2017-07-07  8:37     ` Daiki Ueno
2017-07-07  9:00       ` Neal H. Walfield
2017-07-10  8:31         ` Daiki Ueno
2017-07-10  9:06           ` Neal H. Walfield
2017-07-06 19:29 ` Neal H. Walfield
2017-07-06 20:05   ` Teemu Likonen [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=87tw2pnxei.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=emacs-devel@gnu.org \
    --cc=mwolson@gnu.org \
    --cc=neal@walfield.org \
    --cc=ueno@unixuser.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.