From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH RFC] GnuTLS: Support TOFU certificate checking. Date: Wed, 08 Oct 2014 14:10:46 +0200 Message-ID: <87bnpm2249.fsf@toke.dk> References: <1412716565-7786-1-git-send-email-toke@toke.dk> <87a957o87z.fsf@alrua-karlstad.karlstad.toke.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412770274 11767 80.91.229.3 (8 Oct 2014 12:11:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2014 12:11:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 08 14:11:09 2014 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 1Xbq5E-0005pc-D6 for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2014 14:11:08 +0200 Original-Received: from localhost ([::1]:35812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbq5D-0004FH-SA for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2014 08:11:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbq55-00048P-Pa for emacs-devel@gnu.org; Wed, 08 Oct 2014 08:11:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xbq50-00048U-CS for emacs-devel@gnu.org; Wed, 08 Oct 2014 08:10:59 -0400 Original-Received: from mail2.tohojo.dk ([77.235.48.147]:38772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbq4z-00048K-Vf for emacs-devel@gnu.org; Wed, 08 Oct 2014 08:10:54 -0400 X-Virus-Scanned: amavisd-new at mail2.tohojo.dk Original-Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 47D102E4C2; Wed, 8 Oct 2014 14:10:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toke.dk; s=201310; t=1412770183; bh=pEuSOMAlcfA97YzqFHUEO2KfXgPGT6ZBLlqaWxd9u0c=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=D+tVuiZ6Ml768uIbu00ZPMv/TUFfB4LPY2bmgHWyGVUQHh26TqckcH08yHH/AOhXi Jreq5pTRSd9vk60K06lUc4g6pSWx1jT+p9nQntoyfBZiXuFk45Afv30q7QtzYG9XWM tcK6zXyRRBeiqQ6EEG8Rhx59+uA8OqrJ2ubJ+foU= In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 08 Oct 2014 13:53:35 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 77.235.48.147 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:175113 Archived-At: Lars Magne Ingebrigtsen writes: > Then the management of this could be done at a higher level, which > would be `open-network-stream'. Right, so (just to make sure I'm understanding you right), what you propose is to get rid of all the current validation logic in C (i.e the erroring out) and just return something like ( ) -- and then make the lisp code work out the rest? Right now it seems the C code refuses to even return the opened network stream object if validation fails; with this, that would have to change, and the C code wouldn't make any policy decisions? -Toke