From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: using GnuTLS 3.x and certificate checks Date: Sat, 18 May 2013 22:57:31 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <877giv7k2s.fsf@lifelogs.com> References: <87zjxumbjf.fsf@wanadoo.es> <86zjxrs4jm.fsf@gmail.com> <87k3ovcn1r.fsf@wanadoo.es> <86fvzj2gkz.fsf@gmail.com> <87sj3jaqfs.fsf@wanadoo.es> <83y5dazmpt.fsf@gnu.org> <86ehf2zefk.fsf@gmail.com> <86li9az2sw.fsf@gmail.com> <83hajyz1mi.fsf@gnu.org> <867gku88lx.fsf@gmail.com> <83a9pqysc5.fsf@gnu.org> <86sj3i6ndd.fsf@gmail.com> <83620eyonh.fsf@gnu.org> <86620dqmsd.fsf@gmail.com> <83r4j1xmim.fsf@gnu.org> <86y5d9p4oh.fsf@gmail.com> <83ppylxidt.fsf@gnu.org> <86txnxoz1k.fsf@gmail.com> <83hajxxd5c.fsf@gnu.org> <874nfxt219.fsf_-_@lifelogs.com> <874nfenmya@ch.ristopher.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368932282 13695 80.91.229.3 (19 May 2013 02:58:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 May 2013 02:58:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 19 04:58:01 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Udtop-0008DM-0Y for ged-emacs-devel@m.gmane.org; Sun, 19 May 2013 04:57:55 +0200 Original-Received: from localhost ([::1]:53418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udtoo-0008A2-GG for ged-emacs-devel@m.gmane.org; Sat, 18 May 2013 22:57:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udtoh-00089x-Th for emacs-devel@gnu.org; Sat, 18 May 2013 22:57:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Udtod-0001MT-3M for emacs-devel@gnu.org; Sat, 18 May 2013 22:57:47 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Udtoc-0001MP-D4 for emacs-devel@gnu.org; Sat, 18 May 2013 22:57:43 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Udtob-00083N-4m for emacs-devel@gnu.org; Sun, 19 May 2013 04:57:41 +0200 Original-Received: from pool-72-93-26-80.bstnma.east.verizon.net ([72.93.26.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 May 2013 04:57:41 +0200 Original-Received: from tzz by pool-72-93-26-80.bstnma.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 May 2013 04:57:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-93-26-80.bstnma.east.verizon.net 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 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:QcPYFKxdfnk1FTPqPT1ZTelVmys= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159669 Archived-At: On Wed, 10 Apr 2013 21:35:18 +0100 (BST) Christopher Schmidt wrote: CS> Ted Zlatanov writes: >> This would also be a good time to enable SSL certificate verification >> by default. CS> That's a great idea. CS> What do you think about a user-customizable verification mechanism? CS> This could be as simple as passing host, port and the PEM-encoded cert CS> chain to a regular function that will return non-nil if the verification CS> failed. I like your idea, the problem is that often it will be triggered at very inconvenient times. Emacs, unlike most other environments with this capability, doesn't deal well with interrupting network I/O to ask the user questions... not to mention the TCP exchange itself could be aborted, or the whole thing could be running unattended (--batch for example). I think Lars and many others have brought up these issues before, mostly on the bug tracker over the last year or two. To start the planning, is there a way to tell Emacs "run this function, but if we're not interactive or if the user has not answered in 30 seconds, proceed as if they answered 'n' to everything"? I think that would be better than writing special code just for GnuTLS. But I'm open to suggestions either way. Ted