From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82894 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.gnus.general Subject: [BUG] mml2015-epg-find-usable-key finds unusable key Date: Wed, 13 Feb 2013 20:55:50 +0100 Message-ID: <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 1360864434 8613 80.91.229.3 (14 Feb 2013 17:53:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2013 17:53:54 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31160@lists.math.uh.edu Thu Feb 14 18:54:12 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 1U630Y-0006k9-87 for ding-account@gmane.org; Thu, 14 Feb 2013 18:54:06 +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 1U62zV-0005Om-L6; Thu, 14 Feb 2013 11:53:01 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1U5iea-0008P2-CD for ding@lists.math.uh.edu; Wed, 13 Feb 2013 14:10:04 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1U5ieL-0000Pc-KK for ding@lists.math.uh.edu; Wed, 13 Feb 2013 14:10:03 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1U5ieJ-0002ZR-Jp for ding@gnus.org; Wed, 13 Feb 2013 21:09:47 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U5iea-0005WE-2W for ding@gnus.org; Wed, 13 Feb 2013 21:10:04 +0100 Original-Received: from p54af44e5.dip0.t-ipconnect.de ([84.175.68.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Feb 2013 21:10:04 +0100 Original-Received: from stlman by p54af44e5.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Feb 2013 21:10:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54af44e5.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:N00ouXpGdH2LCTsb8AjrM1R2T3A= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82894 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, 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=3D6e422932976e94d= 6dbb7ad602c5be3eb481fe46c#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. Let's follow the code. epg-list-keys returns all keys for an ID. That seems correct, however, since it knows the uid we are looking for it might check if the uid hasn't been revoked. mml2015-epg-find-usable-key, on the other hand, knows nothing about the recipient, it just checks validity of the *keys* not uids. 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. I'd like to know opinion of someone who knows better than I the ideas behind this code. =2D-=20 Mi=C5=82ego dnia, =C5=81ukasz Stelmach --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQF8BAEBCgBmBQJRG+/dXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5MEY5NEM3QTI4NzRFNDc2ODMwNEMxNEYw MEI2OTc2QzYzOTFEMzcxAAoJEAC2l2xjkdNxeGsIAK4q2ST3I/pe6MRJhJ9RPlrp 5Fxdd40Xwimdyhat0zSLRhpoAIPnxibub4lwia2xkREMvXxX0KkObvZ94QcUQczQ gDsOB0ZsxkPLsLO7AkX5yIu7v/CiTqiz3CECZiKs9OJovkLR/GOKD+RUEzopWUQw aETBBKzUFxSZIo4DGmQzLkpsjU8KH5h4G3rVdYEOpAd4h6htNfyDGY9NomAP4vMt YsnKhrolqkwt0f2XVxsBt2BMFWYKjYi7RBkA8aZwGHoanmynW5bHwBpcwTCMuHUT c+1fv11Qp4c4ZukVlg042FiGyHx9rKWC+GURqnXgaJWKnyzgJfz364XxJ6Xxyu8= =H9bR -----END PGP SIGNATURE----- --=-=-=--