From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: GnuTLS and zeroing keys in Emacs Date: Mon, 17 Jul 2017 09:52:51 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87vamrdvbg.fsf@lifelogs.com> References: <9ee79781-8de0-06ef-6477-28af9852a92b@cs.ucla.edu> <877ez9frug.fsf@lifelogs.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500299922 3314 195.159.176.226 (17 Jul 2017 13:58:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2017 13:58:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 17 15:58:37 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX6Xb-0000A0-SM for ged-emacs-devel@m.gmane.org; Mon, 17 Jul 2017 15:58:27 +0200 Original-Received: from localhost ([::1]:50595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX6Xh-0000bw-CC for ged-emacs-devel@m.gmane.org; Mon, 17 Jul 2017 09:58:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX6SW-0004W2-QR for emacs-devel@gnu.org; Mon, 17 Jul 2017 09:53:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX6SS-0003Go-T4 for emacs-devel@gnu.org; Mon, 17 Jul 2017 09:53:12 -0400 Original-Received: from [195.159.176.226] (port=34017 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX6SS-0003GF-MY for emacs-devel@gnu.org; Mon, 17 Jul 2017 09:53:08 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dX6SJ-0001rr-AT for emacs-devel@gnu.org; Mon, 17 Jul 2017 15:52:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:6o+wiLaE/6+9DMndTFXXIqeCkEo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216773 Archived-At: On Sun, 16 Jul 2017 16:53:20 -0700 Paul Eggert wrote: PE> Ted Zlatanov wrote: >> the best way is to either use gnutls_memset() (available since only >> 3.4.0 in lib/safe-memfuncs.c) or to copy it. PE> These days glibc's explicit_bzero is a better way to go, as its implementation PE> should be more reliable than the 'volatile' trick used by gnutls_memset. So I PE> installed the attached patches into master: they either use explicit_bzero, or PE> copy it. PE> I'll file a bug report with the GnuTLS folks to suggest that they use PE> explicit_bzero if available. Terrific, thanks again for working on this. Ted