From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wahjava.ml@gmail.com (Ashish SHUKLA) Newsgroups: gmane.emacs.devel Subject: Re: Gnus + GPG integration broken after revision 102412. Date: Thu, 23 Dec 2010 08:42:57 +0530 Organization: alt.religion.emacs Message-ID: <86mxnxw5ae.fsf@chateau.d.if> References: <868vzkbz8n.fsf@chateau.d.if> <86ei9bmlkm.fsf@chateau.d.if> <86hbe679gs.fsf@chateau.d.if> <87r5dab47f.fsf@hati.baby-gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1293074203 1102 80.91.229.12 (23 Dec 2010 03:16:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 03:16:43 +0000 (UTC) Cc: Daiki Ueno , emacs-devel@gnu.org To: Daniel Dehennin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 23 04:16:39 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVben-0001Uq-5n for ged-emacs-devel@m.gmane.org; Thu, 23 Dec 2010 04:16:39 +0100 Original-Received: from localhost ([127.0.0.1]:50184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVbcE-0001ya-SI for ged-emacs-devel@m.gmane.org; Wed, 22 Dec 2010 22:13:18 -0500 Original-Received: from [140.186.70.92] (port=39009 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVbcA-0001yL-BP for emacs-devel@gnu.org; Wed, 22 Dec 2010 22:13:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVbc9-0005zw-28 for emacs-devel@gnu.org; Wed, 22 Dec 2010 22:13:14 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:60794) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVbc8-0005zn-Rd for emacs-devel@gnu.org; Wed, 22 Dec 2010 22:13:13 -0500 Original-Received: by iwn40 with SMTP id 40so6426833iwn.0 for ; Wed, 22 Dec 2010 19:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:organization:references:x-face:x-uptime:x-url :x-operating-system:x-openpgp-fingerprint:x-attribution:organisation :date:in-reply-to:message-id:user-agent:face:mime-version :content-type; bh=a7E3L/R2YlecZ72Ak1vg7elpJlEGOI3w48zlWh+G/rY=; b=gt28XCNe0jyyKFxWnvLmtuq95nA+iFLrUDw47L80+LhB9Uf4bXitbGVyDGlD54oYlq Y/3Ch5wg3dA0J6QMwtQOyV2pxn7BWRdDCI9t1gMowwnYzzz4NfHetcU19I2WtpCDlrzI dBCJeEXJPPm8salqU82qm77bm57n1OHZsJF1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:organization:references:x-face:x-uptime :x-url:x-operating-system:x-openpgp-fingerprint:x-attribution :organisation:date:in-reply-to:message-id:user-agent:face :mime-version:content-type; b=A8reSTKUPxdIBVjpioFvXJK2L7xfev/PXAJSsBSalT6SlcRWbY23Lwrko5R6dyxthQ dLByisIn6UT+kTQKrjpZWEVJhYK2+Vjuu5Qye2S88eOIJUTGBDwQbkBO+m+7OEIZ6SRE oT7QsrN9U3+8YGGMnjyPfDOAYWC7dIBB6QX8c= Original-Received: by 10.231.11.71 with SMTP id s7mr7561912ibs.86.1293073991537; Wed, 22 Dec 2010 19:13:11 -0800 (PST) Original-Received: from chateau.d.if ([122.163.154.172]) by mx.google.com with ESMTPS id z4sm6162367ibg.1.2010.12.22.19.13.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Dec 2010 19:13:09 -0800 (PST) Original-Received: from chateau.d.if (chateau.d.if [IPv6:::1]) by chateau.d.if (Postfix) with ESMTP id D2C402D63E0; Thu, 23 Dec 2010 08:43:01 +0530 (IST) X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 08:40:49 up 4:09, 1 user, load average: 0.66, 0.73, 0.73 X-URL: http://762e5e74.wordpress.com/ X-Operating-System: GNU/Linux/Linux 2.6.36-ARCH/x86_64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Organisation: alt.religion.emacs In-Reply-To: <87r5dab47f.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Wed, 22 Dec 2010 09:29:40 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133914 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Daniel Dehennin writes: > wahjava.ml@gmail.com (Ashish SHUKLA) writes: >> Daiki Ueno writes: >>> wahjava.ml@gmail.com (Ashish SHUKLA) writes: >>=20 >>>> #v+ >>>> /usr/local/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command= -fd 0 --armor --textmode --output /tmp/epg-output62957uOj --detach-sign -u = 1F2F8410762E5E74 >>>> Warning: using insecure memory! >>>> gpg: skipped "1F2F8410762E5E74": Unusable secret key >>>> [GNUPG:] INV_SGNR 9 1F2F8410762E5E74 >>>> gpg: signing failed: Unusable secret key >>>> #v- >>>>=20 >>>> The above mentioned key id belongs to my GPG key which I revoked, but = it's >>>> still present in my system to decrypt old content encrypted with it. >>=20 >>> It looks strange that mml2015 passes the expired key to gpg, since >>> `mml2015-epg-sign' is expected to reject such a key through >>> `mml2015-epg-find-usable-key'. >>=20 >>> Do you see 1F2F8410762E5E74 key with: >>=20 >>> (mml2015-epg-find-usable-key >>> (epg-list-keys (epg-make-context 'OpenPGP) "1F2F8410762E5E74" t) >>> 'sign) >>=20 >> Yes, I see that key. And, please note that it's not expired, it's revoke= d. > Hello, > mml2015-epg-find-usable-key should remove revoked keys. > Can you test the following for me? > #v+ > (defun test-mml2015-epg-find-usable-key (signers) > (let* ((context (epg-make-context)) > (keys (epg-list-keys context signers)) > (validities nil)) > (while keys > (let ((pointer (epg-key-sub-key-list (car keys)))) > (while pointer > (setq validities (cons=20 > (cons (epg-sub-key-id (car pointer)) (symbol-name (epg-sub-key-val= idity (car pointer)))) > validities)) > (setq pointer (cdr pointer)))) > (setq keys (cdr keys))) > validities)) > (test-mml2015-epg-find-usable-key '("1F2F8410762E5E74")) > #v- This is what I get: (("F80D89FB7B05E99F" . "revoked") ("1F2F8410762E5E74" . "revoked")) HTH =2D-=20 Ashish SHUKLA =E2=80=9CIt's good to be wrong. Don't feel shamed. Wear past mistakes as a badge of honor because growth is everything. To stop learning is to decay.=E2=80=9D ("apokalyptik", "in a conversation to abbe", 2010) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQIcBAEBCgAGBQJNEr49AAoJEMdGz6nnT6Swsv8P/i2n6zHesTqfj7ZaJAC2nGyI 5bWSbtBdr0Kz6tqhZ+oMFiUU0s78pEvf0RDnlDdpJhTyhJ9SuGR8R7Z0eLXiExrQ PD1Lk6YmvRVXgTkwDaQR+PxxD6c7Hgl74L0Jx2gqC3kMeNQaJPyGh00BGkYWvMWI B/gK+dWCYkIcWod2hNaiQIJo7nFnciE1vE5Julp2v+PQQU24Pq6VTIvuMa+/jEKd oNMvKbRDR1amvLk1ZBs+T516O+5SlA8YvewxLyey5Hp7qh6LlsWqK7usay0vEOKc GMQyR3/S5dx2DQ2sfLGNmQldmEORbkFBa6DCsW0YsH0ML0bXmpljnOSyF0lVcnry /+5LqIJIEidEjmnAQosbPxTDe06XWl/q5Z4gzvcrJqjmOmszPv4hd4W3qRZfoE6t 3CDeNeIh/HCneuqZ+W3Jvbsbp/IVuaaXujNTKbR/378aOYpm0FL2nXn/eIO5h3iy aBEHq8NS2YNrzxKVkgsJvjEVd2/SQdljDEYYChstTYrhW8S65xJuVHnbMp5+0xFb AaTT8myprAr66efneeU/rnZqgLdiKeW9jrPs7EdCFrfDQCaHzsG/MHezCs1wOUKC WrDudwejDmq9KDN1gmyFBYaXY5ojG48e3ZsApHthZ1FRICnKF+tiTQlXBnBO+k6a MWZC4mbgNXRxYejoU/Vx =UwLt -----END PGP SIGNATURE----- --=-=-=--