From: Ulrich Mueller <ulm@kph.uni-mainz.de>
To: emacs-devel@gnu.org
Subject: PGG incompatible with GnuPG >=2.0.10 (patch included)
Date: Thu, 18 Jun 2009 16:46:34 +0200 [thread overview]
Message-ID: <19002.21322.769723.740121@a1i15.kph.uni-mainz.de> (raw)
GnuPG has changed the output format for listing of keys with
"gpg --with-colons --list-keys". It doesn't merge the primary user ID
and the primary key any more:
,----[ GnuPG 2.0.9 ]
| tru::1:1245322604:0:3:1:5
| pub:-:1024:17:39EA32FE8222EEEC:2007-03-15:::-:Ulrich Mueller <ulm@kph.uni-mainz.de>::scESC:
| uid:-::::2007-04-14::6C417503DC0A22396443B86A6D17B18D33765C41::Ulrich Mueller <ulm@gentoo.org>:
| sub:-:2048:16:4CC72125BEE5C5AF:2007-03-15::::::e:
`----
,----[ GnuPG 2.0.11 ]
| tru::1:1245322604:0:3:1:5
| pub:-:1024:17:39EA32FE8222EEEC:1173998442:::-:::scESC:
| uid:-::::1176565513::5F7ECDB3196B011228D6B4CE204DC59E1E588022::Ulrich Mueller <ulm@kph.uni-mainz.de>:
| uid:-::::1176565069::6C417503DC0A22396443B86A6D17B18D33765C41::Ulrich Mueller <ulm@gentoo.org>:
| sub:-:2048:16:4CC72125BEE5C5AF:1173998442::::::e:
`----
The format of the "colon listings" is described here:
<http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/*checkout*/tags/gnupg-2.0.11/doc/DETAILS?rev=4943&root=GnuPG>
Unfortunately, PGG expects the user ID in the "pub" line and therefore
fails to parse the new output format. Attached is a patch that fixes
the problem for me.
Ulrich
2009-06-18 Ulrich Mueller <ulm@kph.uni-mainz.de>
* pgg-gpg.el (pgg-gpg-lookup-key-owner): Change regexp to make
parsing of keys work with GnuPG 2.0.10 and later.
--- emacs-orig/lisp/pgg-gpg.el
+++ emacs-lisp/pgg-gpg.el
@@ -189,9 +189,9 @@
(let ((args (list "--with-colons" "--no-greeting" "--batch"
(if all "--list-secret-keys" "--list-keys")
string))
- (key-regexp (concat "^\\(sec\\|pub\\)"
+ (key-regexp (concat "^\\(sec\\|pub\\|uid\\)"
":[^:]*:[^:]*:[^:]*:\\([^:]*\\):[^:]*"
- ":[^:]*:[^:]*:[^:]*:\\([^:]*\\):")))
+ ":[^:]*:[^:]*:[^:]*:\\([^:]+\\):")))
(with-temp-buffer
(apply #'call-process pgg-gpg-program nil t nil args)
(goto-char (point-min))
next reply other threads:[~2009-06-18 14:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-18 14:46 Ulrich Mueller [this message]
2009-06-18 16:13 ` PGG incompatible with GnuPG >=2.0.10 (patch included) Chong Yidong
2009-06-18 16:56 ` Ulrich Mueller
2009-06-18 17:51 ` Chong Yidong
2009-06-19 5:42 ` Daiki Ueno
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=19002.21322.769723.740121@a1i15.kph.uni-mainz.de \
--to=ulm@kph.uni-mainz.de \
--cc=emacs-devel@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 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).