From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82898 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.gnus.general Subject: Re: [BUG] mml2015-epg-find-usable-key finds unusable key Date: Fri, 15 Feb 2013 08:59:00 +0100 Message-ID: <87haleovnf.fsf%lukasz.stelmach@iem.pw.edu.pl> References: <87fw106la1.fsf%stlman@poczta.fm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1360915240 28173 80.91.229.3 (15 Feb 2013 08:00:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 08:00:40 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31164@lists.math.uh.edu Fri Feb 15 09:00:59 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6GE2-0001do-Vk for ding-account@gmane.org; Fri, 15 Feb 2013 09:00:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1U6GD0-0000RW-FK; Fri, 15 Feb 2013 01:59:50 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1U6GCv-0000RG-SL for ding@lists.math.uh.edu; Fri, 15 Feb 2013 01:59:45 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1U6GCq-00057j-Nm for ding@lists.math.uh.edu; Fri, 15 Feb 2013 01:59:45 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1U6GCo-0007sN-PG for ding@gnus.org; Fri, 15 Feb 2013 08:59:38 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U6GD2-0001J1-Ox for ding@gnus.org; Fri, 15 Feb 2013 08:59:52 +0100 Original-Received: from p54af403b.dip0.t-ipconnect.de ([84.175.64.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Feb 2013 08:59:52 +0100 Original-Received: from lukasz.stelmach by p54af403b.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Feb 2013 08:59:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54af403b.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:nPJ1/FLFmGpryOB7Am6giVBnK7E= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82898 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Daiki Ueno writes: > =C5=81ukasz Stelmach writes: > >> It looks like there is a sort of bug in mml2015-epg-encrypt at line >> 1117. >> >> http://git.gnus.org/cgit/gnus.git/tree/lisp/mml2015.el?id=3D6e422932976e= 94d6dbb7ad602c5be3eb481fe46c#n1117) >> >> The whole form that begins at line 1113 converts list of recipients >> provided as email addresses, key IDs or anything gpg can digest into epg >> "objects". Unfortunately there is one corner case that makes this code >> fail. That is when a key is valid but a uid on it has been revoked. > > Thanks for the report. > >> epg.el is a part of emacs, mml2015.el belongs to gnus. IMHO it is >> mml2015-epg-find-usable-key that should be fixed. The function should >> accept and additional (optional?) parameter with a recipient uid as >> passed to epg-list-keys and reject keys with all uids matching the >> recipient parameter revoked. > > Sounds reasonable. I plan to apply the attached patch. The patch looks reasonable (-; I'll check tooday in the evening (CET). Before applying please follow the discussion (if it appears) on the gpg-devel mailing list: http://permalink.gmane.org/gmane.comp.encryption.gpg.devel/17572=20 Of course if a fix appears in gpg 2.0.20 your code is still relevant for thos who use older versions. =2D-=20 Mi=C5=82ego dnia, =C5=81ukasz Stelmach --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQF8BAEBCgBmBQJRHerXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5MEY5NEM3QTI4NzRFNDc2ODMwNEMxNEYw MEI2OTc2QzYzOTFEMzcxAAoJEAC2l2xjkdNxxosH/3KVcNroJAoUSW/Poo4eeitY dJP+q7/68E38+/u8eL0gRaMnPYvtTnRPQccXlypt3uv87U6OMBs2Pn8ABoDXxx0q Wd7hRn1/+ltCpXtrJNUBl8CfHetv2Q9a5PRAbs+K3rUyZjqZyzp/Z59DB9ITl0WX gp7zngN6h4YrIl+9qPG/HYyOHPjSstA7W9UA+IKp37UtN52hqmuhdumoFusCM45q lvswGnKssTDz990B4GCu+XW0Qcx6mefGy8rgYTwDV9PGMNfn4XNNSLfyRlThIPvV n3DuTjLdNgOxAf4J6ZqQx23drXoKbeyBBAjQCsXcLNretWgzYtatTzL0olGRn64= =NONM -----END PGP SIGNATURE----- --=-=-=--