GNU bug report logs - #21997
epa--key-widget-value-create ignores signing subkeys

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: John Wiegley <jwiegley@HIDDEN>; dated Mon, 23 Nov 2015 17:40:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Nov 2015 17:39:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 23 12:39:22 2015
Received: from localhost ([127.0.0.1]:49785 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1a0v5G-0006dD-Gh
	for submit <at> debbugs.gnu.org; Mon, 23 Nov 2015 12:39:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39426)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <jwiegley@HIDDEN>) id 1a0v4x-0006cc-0F
 for submit <at> debbugs.gnu.org; Mon, 23 Nov 2015 12:39:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jwiegley@HIDDEN>) id 1a0v4v-0007fK-OS
 for submit <at> debbugs.gnu.org; Mon, 23 Nov 2015 12:39:02 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42274)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jwiegley@HIDDEN>) id 1a0v4v-0007fG-MC
 for submit <at> debbugs.gnu.org; Mon, 23 Nov 2015 12:39:01 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49428)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jwiegley@HIDDEN>) id 1a0v4u-0002a8-CZ
 for bug-gnu-emacs@HIDDEN; Mon, 23 Nov 2015 12:39:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jwiegley@HIDDEN>) id 1a0v4r-0007ev-14
 for bug-gnu-emacs@HIDDEN; Mon, 23 Nov 2015 12:39:00 -0500
Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:35130)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jwiegley@HIDDEN>) id 1a0v4q-0007er-Rk
 for bug-gnu-emacs@HIDDEN; Mon, 23 Nov 2015 12:38:56 -0500
Received: by pacej9 with SMTP id ej9so197395906pac.2
 for <bug-gnu-emacs@HIDDEN>; Mon, 23 Nov 2015 09:38:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:user-agent:mail-followup-to
 :mime-version:content-type;
 bh=ZeQNj0Iythffv17ea4qqkO5iUa5lr/inlR6r9bN6HVY=;
 b=bopYzBiidebl5p3cidENYVoH/RXi+LrRCpoiFrHRd16P6z9LHuRYWCz/eQd5d6AIA9
 zgNByoK5I8aRq/LOb8vtPz/9raFMal9CiTD7Ylz/uNqyh3WKhEROgjV0WO0KLiI1PEDi
 n7AE7YNvCL6WlJ4Aqf3GD/as0alcedehkqsIn5h3DftqKqxlZVzccPUT2BikZYh6nKCG
 NhojGuM9rbdt52IIedJt2n5uH4GcBEABTCLuzz0wOUYYGUMPOHX/rNXY5fT+mKAZrikD
 TmPkfFrLyhRy61IxEIclbvlGnzw+0Wr04CJEL0pCRBd7LwphRniqSNIi3YW02cgcPZjg
 vC4g==
X-Received: by 10.98.14.75 with SMTP id w72mr17610696pfi.166.1448300336395;
 Mon, 23 Nov 2015 09:38:56 -0800 (PST)
Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net.
 [76.234.68.79])
 by smtp.gmail.com with ESMTPSA id vk10sm11171254pbc.66.2015.11.23.09.38.54
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1 cipher=AES128-SHA bits=128/128);
 Mon, 23 Nov 2015 09:38:54 -0800 (PST)
From: John Wiegley <jwiegley@HIDDEN>
X-Google-Original-From: "John Wiegley" <johnw@HIDDEN>
Received: by Vulcan.local (Postfix, from userid 501)
 id DC55D10ABA86B; Mon, 23 Nov 2015 09:38:53 -0800 (PST)
To: bug-gnu-emacs@HIDDEN
Subject: epa--key-widget-value-create ignores signing subkeys
Date: Mon, 23 Nov 2015 09:38:52 -0800
Message-ID: <m2io4shaz7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)
Mail-Followup-To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

When listing secret keys using `M-x epa-list-secret-keys', one can press RET
on the inserted widget to see a list of associated subkeys. This shows that
epa.el is correctly parsing the subkeys of one's secret key.

However, the :value of that widget always chooses the first subkey, as seen
here:

    (defun epa--key-widget-value-create (widget)
      (let* ((key (widget-get widget :value))
-->          (primary-sub-key (car (epg-key-sub-key-list key)))
             (primary-user-id (car (epg-key-user-id-list key))))
        ...))

For people with multiple subkeys -- especially those who use dedicated subkeys
for signing and/or encrypting -- it would be nice to be able to select which
subkey(s) to use. The only way I can see this fitting into the current EasyPG
selection architecture would be to present each subkey as if it were a
separate, virtual secret key. In other words, where every subkey becomes a
separate widget in the list and selection buffers.

This also affects mml signing in Gnus, since it also uses the widget :value to
determine which key to use for signing.

John




Acknowledgement sent to John Wiegley <jwiegley@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#21997; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.