unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24350: 24.5; epg: unsupported cpr_get keywords incorrectly handled
@ 2016-09-01  9:29 Neal H. Walfield
  2019-08-30 10:46 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Neal H. Walfield @ 2016-09-01  9:29 UTC (permalink / raw)
  To: 24350; +Cc: Daiki Ueno

Hi,

When GnuPG needs input, it sometimes uses cpr_get (in
gnupg/g10/cpr.c:cpr_get).  When this occurs, epg shows the prompt's
keyword.  The correct thing to do if epg does not support the keyword is
to send a carriage return to GnuPG to accept the default.  (Of course,
it is better to actually support the keywords, but this is a separate
issue.)

It is possible to reproduce this using the new tofu trust model in
GnuPG, which epg does not yet support.  Specifically:

 1. Set the trust-model to tofu+pgp in gpg.conf:

    trust-model tofu+pgp

 2. Run M-x epa-encrypt-region in emacs.

 3. Select a key for which there is another key with the same email
     address.

 4. In the mini buffer, emacs will show "tofu.conflict:" and wait for
    input.

Thanks!

:) Neal

In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-08 on binet, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11604000
System Description:	Debian GNU/Linux 8.5 (jessie)

Configured using:
 `configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Major mode: Folder

Minor modes in effect:
  diff-auto-refine-mode: t
  show-paren-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Checking folder diff...done
Creating msgdb...done
Making thread...done
Updating thread indent...done
Updating marks...
Scoring...done
Updated (-0/+2) message(s).
Updated (-0/+2) message(s)
Retrieving...done
Retrieving...done

Load-path shadows:
/usr/share/emacs/site-lisp/wl/utils/ptexinfmt hides /usr/share/emacs24/site-lisp/wl/ptexinfmt
/usr/share/emacs/site-lisp/wl/utils/ssl hides /usr/share/emacs24/site-lisp/wl/ssl
/usr/share/emacs/site-lisp/wl/utils/wl-addrbook hides /usr/share/emacs24/site-lisp/wl/wl-addrbook
/usr/share/emacs/site-lisp/wl/utils/wl-complete hides /usr/share/emacs24/site-lisp/wl/wl-complete
/usr/share/emacs/site-lisp/wl/utils/wl-mailto hides /usr/share/emacs24/site-lisp/wl/wl-mailto
/usr/share/emacs/site-lisp/wl/utils/rfc2368 hides /usr/share/emacs24/site-lisp/wl/rfc2368
/usr/share/emacs/site-lisp/wl/utils/im-wl hides /usr/share/emacs24/site-lisp/wl/im-wl
/usr/share/emacs/site-lisp/wl/utils/bbdb-wl hides /usr/share/emacs24/site-lisp/wl/bbdb-wl
/usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.5/lisp/md4
/usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.5/lisp/hex-util
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.5/lisp/textmodes/ispell
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.5/lisp/textmodes/rst
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.5/lisp/textmodes/flyspell
/usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.5/lisp/net/sasl-ntlm
/usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.5/lisp/net/sasl
/usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.5/lisp/net/sasl-cram
/usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.5/lisp/net/hmac-md5
/usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.5/lisp/net/hmac-def
/usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.5/lisp/net/ntlm
/usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.5/lisp/net/sasl-digest
/usr/share/emacs/site-lisp/wl/utils/rfc2368 hides /usr/share/emacs/24.5/lisp/mail/rfc2368
/usr/share/emacs24/site-lisp/mailcrypt/mc-pgp5 hides /usr/share/emacs/site-lisp/mailcrypt/mc-pgp5
/usr/share/emacs24/site-lisp/mailcrypt/mc-pgp hides /usr/share/emacs/site-lisp/mailcrypt/mc-pgp
/usr/share/emacs24/site-lisp/mailcrypt/mc-setversion hides /usr/share/emacs/site-lisp/mailcrypt/mc-setversion
/usr/share/emacs24/site-lisp/mailcrypt/expect hides /usr/share/emacs/site-lisp/mailcrypt/expect
/usr/share/emacs24/site-lisp/mailcrypt/mc-pgp6 hides /usr/share/emacs/site-lisp/mailcrypt/mc-pgp6
/usr/share/emacs24/site-lisp/mailcrypt/mc-remail hides /usr/share/emacs/site-lisp/mailcrypt/mc-remail
/usr/share/emacs24/site-lisp/mailcrypt/mc-gpg hides /usr/share/emacs/site-lisp/mailcrypt/mc-gpg
/usr/share/emacs24/site-lisp/mailcrypt/mailcrypt hides /usr/share/emacs/site-lisp/mailcrypt/mailcrypt
/usr/share/emacs24/site-lisp/mailcrypt/mc-toplev hides /usr/share/emacs/site-lisp/mailcrypt/mc-toplev

Features:
(shadow sort emacsbug rect help-mode copyright bbdb-snarf mail-extr
misearch multi-isearch wl-fldmgr ispell gnutls network-stream tls smtp
sasl sasl-anonymous sasl-login sasl-plain wid-edit bbdb-gui mailcrypt
mime-pgp modb-legacy wl-expire shr-color color mime-shr shr wl-score
elmo-internal mule-util mel-q-ccl pccl pccl-20 ccl starttls utf-7
elmo-imap4 time-stamp modb-standard wl-mime mime-play filename mime-edit
bbdb-wl bbdb-hooks bbdb-com warnings bbdb cl gv mime-setup
mail-mime-setup semi-setup mime-image epa epg wl-demo wl-draft
eword-encode wl-template sendmail elmo-net elmo-cache elmo-map elmo-dop
wl-news derived wl-address wl-thread wl-action wl-summary ps-print
ps-def lpr wl-refile wl-message elmo-mime mmelmo-buffer mmelmo-imap
mime-view mime-conf calist semi-def mmimap mime-parse mmbuffer mmgeneric
wl-highlight elmo-multi wl-folder wl wl-e21 wl-util pp elmo-flag
elmo-localdir wl-vars wl-version elmo elmo-signal elmo-msgdb modb
modb-generic modb-entity mime elmo-util emu invisible inv-23 poem
poem-e20 poem-e20_3 eword-decode mel mime-def alist mcharset mcs-20
mcs-e20 pces pces-e20 pces-20 broken pcustom elmo-date timezone
elmo-vars path-util poe elmo-version pym static apel-ver product luna
std11 package epg-config tramp tramp-compat auth-source eieio byte-opt
bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core
gnus-util password-cache tramp-loaddefs trampver magit-bisect
magit-key-mode magit diff-mode log-edit easy-mmode message rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader
pcvs-util add-log paren time mailcrypt-init 50magit ido ess-toolbar
ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb
ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l
ess-sas-a shell pcomplete ess-sta-d ess-sta-l cc-vars cc-defs
make-regexp ess-sp6-d ess-sp3-d ess-julia ess-r-d compile ess-tracebug
format-spec ess-roxy advice hideshow ess-help ess-developer ess-r-args
eldoc help-fns ess-s-l ess ess-inf comint ansi-color ring ess-mode
ess-noweb-mode ess-utils ess-custom executable easymenu ess-compat
ess-site bbdb-autoloads time-date tooltip electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 370735 153584)
 (symbols 48 39966 3933)
 (miscs 40 868 1707)
 (strings 32 73668 44504)
 (string-bytes 1 2197566)
 (vectors 16 41790)
 (vector-slots 8 1739104 178948)
 (floats 8 586 829)
 (intervals 56 12267 1468)
 (buffers 960 67)
 (heap 1024 58514 9015))





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24350: 24.5; epg: unsupported cpr_get keywords incorrectly handled
  2016-09-01  9:29 bug#24350: 24.5; epg: unsupported cpr_get keywords incorrectly handled Neal H. Walfield
@ 2019-08-30 10:46 ` Lars Ingebrigtsen
  2019-08-30 16:07   ` Neal H. Walfield
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-30 10:46 UTC (permalink / raw)
  To: Neal H. Walfield; +Cc: 24350, Daiki Ueno

Neal H. Walfield <neal@gnu.org> writes:

> It is possible to reproduce this using the new tofu trust model in
> GnuPG, which epg does not yet support.  Specifically:
>
>  1. Set the trust-model to tofu+pgp in gpg.conf:
>
>     trust-model tofu+pgp
>
>  2. Run M-x epa-encrypt-region in emacs.
>
>  3. Select a key for which there is another key with the same email
>      address.
>
>  4. In the mini buffer, emacs will show "tofu.conflict:" and wait for
>     input.

Do you have key IDs for some example keys with the same email address?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24350: 24.5; epg: unsupported cpr_get keywords incorrectly handled
  2019-08-30 10:46 ` Lars Ingebrigtsen
@ 2019-08-30 16:07   ` Neal H. Walfield
  2019-09-04 13:43     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Neal H. Walfield @ 2019-08-30 16:07 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 24350, Daiki Ueno

On Fri, 30 Aug 2019 12:46:17 +0200,
Lars Ingebrigtsen wrote:
> 
> Neal H. Walfield <neal@gnu.org> writes:
> 
> > It is possible to reproduce this using the new tofu trust model in
> > GnuPG, which epg does not yet support.  Specifically:
> >
> >  1. Set the trust-model to tofu+pgp in gpg.conf:
> >
> >     trust-model tofu+pgp
> >
> >  2. Run M-x epa-encrypt-region in emacs.
> >
> >  3. Select a key for which there is another key with the same email
> >      address.
> >
> >  4. In the mini buffer, emacs will show "tofu.conflict:" and wait for
> >     input.
> 
> Do you have key IDs for some example keys with the same email address?

Run the following command twice:

  $ gpg --quick-gen-key foo@example.com






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24350: 24.5; epg: unsupported cpr_get keywords incorrectly handled
  2019-08-30 16:07   ` Neal H. Walfield
@ 2019-09-04 13:43     ` Lars Ingebrigtsen
  2019-09-04 14:11       ` Neal H. Walfield
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-04 13:43 UTC (permalink / raw)
  To: Neal H. Walfield; +Cc: 24350, Daiki Ueno

"Neal H. Walfield" <neal@walfield.org> writes:

>> Do you have key IDs for some example keys with the same email address?
>
> Run the following command twice:
>
>   $ gpg --quick-gen-key foo@example.com

I think it'd make more sense to import some keys, perhaps?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24350: 24.5; epg: unsupported cpr_get keywords incorrectly handled
  2019-09-04 13:43     ` Lars Ingebrigtsen
@ 2019-09-04 14:11       ` Neal H. Walfield
  0 siblings, 0 replies; 5+ messages in thread
From: Neal H. Walfield @ 2019-09-04 14:11 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 24350, Daiki Ueno

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

You asked for example keys. I showed you how to create some. Are you having difficulty creating them? Or, what is the problem?

On September 4, 2019 3:43:59 PM GMT+02:00, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>"Neal H. Walfield" <neal@walfield.org> writes:
>
>>> Do you have key IDs for some example keys with the same email
>address?
>>
>> Run the following command twice:
>>
>>   $ gpg --quick-gen-key foo@example.com
>
>I think it'd make more sense to import some keys, perhaps?
>
>-- 
>(domestic pets only, the antidote for overdose, milk.)
>   bloggy blog: http://lars.ingebrigtsen.no

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

[-- Attachment #2: Type: text/html, Size: 1094 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-04 14:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-01  9:29 bug#24350: 24.5; epg: unsupported cpr_get keywords incorrectly handled Neal H. Walfield
2019-08-30 10:46 ` Lars Ingebrigtsen
2019-08-30 16:07   ` Neal H. Walfield
2019-09-04 13:43     ` Lars Ingebrigtsen
2019-09-04 14:11       ` Neal H. Walfield

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).