From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#8474: 23.2; smime feature requests Date: Tue, 04 Aug 2020 20:39:45 +0200 Message-ID: <877duel0ge.fsf@gnus.org> References: <41zqc6pqotts2h.fsf@mq.edu.au> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13480"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 8474@debbugs.gnu.org To: Arik Mitschang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 04 20:40:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k31rB-0003NJ-GN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Aug 2020 20:40:13 +0200 Original-Received: from localhost ([::1]:55436 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k31rA-0000gb-EI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Aug 2020 14:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k31r2-0000gF-Va for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 14:40:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k31r2-0001Hg-JC for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 14:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k31r0-0000Dy-Gv for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2020 14:40:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Aug 2020 18:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8474 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 8474-submit@debbugs.gnu.org id=B8474.1596566399847 (code B ref 8474); Tue, 04 Aug 2020 18:40:02 +0000 Original-Received: (at 8474) by debbugs.gnu.org; 4 Aug 2020 18:39:59 +0000 Original-Received: from localhost ([127.0.0.1]:49143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k31qx-0000Db-AA for submit@debbugs.gnu.org; Tue, 04 Aug 2020 14:39:59 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:59496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k31qu-0000DM-2O for 8474@debbugs.gnu.org; Tue, 04 Aug 2020 14:39:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=S+SIH/rhS7VmyTGNiIQLnwO76NCcIYhbq4z6Yf03BTE=; b=LkRkxuDR0QjfAhoJ1ukaOWzj/v gtLArFIJbz/c4YY8gnGezaCFXWM3pA6toEJsYd05wGz3tmwNtQ60mqzCoeH9S3O3NN3kANArBtSY5 10Brqe6h8QldXfxtvIDcDPjawaxfNj96P8DjXiW3ToX6tG1Lw8giJkiFTwdWY1rjOYBc=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k31qk-0002Cm-SF; Tue, 04 Aug 2020 20:39:49 +0200 In-Reply-To: <41zqc6pqotts2h.fsf@mq.edu.au> (Arik Mitschang's message of "Mon, 11 Apr 2011 12:55:34 +1000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:184045 Archived-At: (This nine year old bug report has had no attention -- sorry about that.) Arik Mitschang writes: > I have two feature requests for the smime package included in gnus > shipped with emacs. The first is trivial and simply adds the AES > encryption standard to that which is supported by emacs smime (openssl > supports these, if there are many versions which don't perhaps adding a > note the the doc string to check before changing would be appropriate in > addition to the change). This change is implemented in the first > attached patch. I've now applied this to Emacs 28. > The second is somewhat less trivial, some folks will have there RSA > private key not encrypted for whatever reason and it can be fairly > annoying to have to enter a password for such keys each time (and in > cases where it would not be appropriate to change the password cache > time, one would have to). Since I found no real easy way to determine if > a key is encrypted other than to open the file and check every time, I > added another bit to the smime-keys variable allowing the user to > specify if that key is clear or not, and added optional args to the > signing and decryption functions along with a helper function that will > determine if the key (by email) needs a password or not. This is > implemented in the second attached patch. It's been so long since you sent the patch, so I don't know if you're interested in following up on this or not. If not -- I totally understand. But I'm not quite sure I understand the use case. Does the patch auto-decrypt if your private key is without a passphrase? If so, that does indeed seem useful. On the other hand, these days I think everybody uses a gpg agent, so it's less important whether there's a passphrase or not these days, and people chose always-decrypt/ask-before-decrypt independent of whether the private key has a passphrase or not. But I may be misinterpreting you here... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no