From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH RFC] GnuTLS: Support TOFU certificate checking. Date: Wed, 08 Oct 2014 17:01:21 +0300 Message-ID: <834mvek6dq.fsf@gnu.org> References: <1412716565-7786-1-git-send-email-toke@toke.dk> <87a957o87z.fsf@alrua-karlstad.karlstad.toke.dk> <87bnpm2249.fsf@toke.dk> <83eguik9ip.fsf@gnu.org> <83d2a2k91n.fsf@gnu.org> <83bnpmk8fd.fsf@gnu.org> <838ukqk7gd.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1412776890 6900 80.91.229.3 (8 Oct 2014 14:01:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2014 14:01:30 +0000 (UTC) Cc: tzz@lifelogs.com, toke@toke.dk, 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 16:01:22 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 1Xbrnu-0003Jf-GM for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2014 16:01:22 +0200 Original-Received: from localhost ([::1]:36374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbrnu-00044v-79 for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2014 10:01:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbrnm-00044q-CM for emacs-devel@gnu.org; Wed, 08 Oct 2014 10:01:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xbrnh-0000xK-T8 for emacs-devel@gnu.org; Wed, 08 Oct 2014 10:01:14 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:37327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xbrnh-0000xD-M7 for emacs-devel@gnu.org; Wed, 08 Oct 2014 10:01:09 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0ND400M00PC0XD00@mtaout28.012.net.il> for emacs-devel@gnu.org; Wed, 08 Oct 2014 16:59:41 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ND400I2DPJGNL50@mtaout28.012.net.il>; Wed, 08 Oct 2014 16:59:41 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 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:175132 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: toke@toke.dk, tzz@lifelogs.com, emacs-devel@gnu.org > Date: Wed, 08 Oct 2014 15:47:33 +0200 > > Eli Zaretskii writes: > > > What happens if some stuff comes out of the stream that failed to be > > validated, while Emacs negotiates with the user about what to do? > > Normally, we would pass this stuff to whatever sentinel was defined, > > or insert it into a buffer. Is that what you want? > > Does that really happen that early in the connection process? I thought > sentinels and buffers were attached at a point later, so that > `open-network-stream' would have a chance of inspecting the stream > first. It won't happen before open-network-stream returns, or close to its end, but then I don't quite understand where do you want to insert the validation stuff. Did you intend to do that inside open-network-stream? If so, it will suddenly start talking to the user, something that applications might not be ready for.