From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Emacs core TLS support Date: Mon, 27 Sep 2010 17:07:51 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <878wc1vfh3.fsf@lifelogs.com> <87r5i2d00q.fsf@lifelogs.com> <87zkwqijye.fsf@stupidchicken.com> <878w4actmg.fsf@lifelogs.com> <877hju123h.fsf@stupidchicken.com> <8762yklrdk.fsf@lifelogs.com> <87wrqzhrjv.fsf@lifelogs.com> <87fwxmihyz.fsf@lifelogs.com> <8762ycfhqo.fsf@lifelogs.com> <87d3sf9soo.fsf@lifelogs.com> <87r5gh2fzj.fsf@lifelogs.com> <80aan3grgg.fsf@tiny.isode.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285600096 7446 80.91.229.12 (27 Sep 2010 15:08:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 15:08:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 27 17:08:14 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0FJN-0005Hy-G1 for ged-emacs-devel@m.gmane.org; Mon, 27 Sep 2010 17:08:14 +0200 Original-Received: from localhost ([127.0.0.1]:54528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0FJM-0001Ow-Ar for ged-emacs-devel@m.gmane.org; Mon, 27 Sep 2010 11:08:12 -0400 Original-Received: from [140.186.70.92] (port=56794 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0FJD-0001Or-Lu for emacs-devel@gnu.org; Mon, 27 Sep 2010 11:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0FJA-0003ME-87 for emacs-devel@gnu.org; Mon, 27 Sep 2010 11:08:03 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57452) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0FJ9-0003La-Q3 for emacs-devel@gnu.org; Mon, 27 Sep 2010 11:08:00 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P0FJ7-0005BB-LC for emacs-devel@gnu.org; Mon, 27 Sep 2010 17:07:57 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2010 17:07:57 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Sep 2010 17:07:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUrAgFFBwbBiGX34bRg EAyuVi16Lx0XAADAGEqpAAACM0lEQVQ4jW2UTXPbIBCGl5lMdYUMdc9Fo/wAmNyjFHOvEnS2U9he nVz09/susmLH052xhfdhP3hZi2I0mpaTimI1T0OJiblEipVHQ0RqBTkXPBvYO9gDiF1BXI3is4Ah aiL7H+DyHLWyN8CH4OE5GrP/AkJYwauJe855NM02IC2S2XPh5kZFgL4PLqaI+nbUCq3TGcCcSZlH stjcSd/jmsp7Z4RwxcdOA9SQCC/tYrWDIFhVbDwio3n2gwCQuzwhaX7B1xDJ3AeJGFHP7KfWeC9t krGiWpTuY3xrYJJ2yCjp267H3ffeZTcIIU2qbRYrtUI1dDD1AkgCwLCAVg7iuCH3ZASIsmlUo4Ey AHnI0xmQqrWoOGrT7gRGy7KcSJ/ucKcaxNh0Bh2APRBXLscjH38jlxtmAIS8JyZOh8Lf7A9OPK1A UnWkrVz6Ij8UpmOrcYKW5QmKQxbTfcfx1hpyNUjFjCLMf5e3HsJIvAAlQ9ctq9kpPAKcNrD54dg5 avuJhC7LhayeK9+GzBrR3YJFbakavA48e5VuD30JpTYjctYZs2uL3qIoXOwB/yeM7lrxGoRh8m7m uSX8AvzkB+beP3U3QMat1Bz8oVuo/wIe8+tORvFnR3Jj7kKZja3SCIAM+WZzTEfMAyaugU9/5ijT V+c/N2AuIy7RwhUoXQMEdO8OL4b0QvLm+KxRTLd8hIfE6Y0iyAbmESf7FTxjiAiD/gmKhhZofeAd gI2pXgV8iDSvaf4HqqsVIbgJSecAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Hector Zazou & Swara's _In the House of Mirrors_: "Hool Ki Seva" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:7TjvhdG3xI9OO6SrHaRriYqmjkE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131002 Archived-At: Bruce Stephens writes: > So using non-blocking I/O in TLS requires some care; the conditions at > the socket level you want to be triggered for don't necessarily match > what you're trying to do at the higher level. Right. I think it almost handled correctly -- it just looped too much on retries instead of letting the Emacs loop run and retry. With the latest tweaks, I'm able to carry on a conversation with Gmail, so I think we're getting there... --- (progn (require 'gnutls) (setq messages-buffer-max-lines 600000) (open-ssl-stream "tls" (current-buffer) "imap.gmail.com" "imaps")) * OK Gimap ready for requests from 84.215.34.171 44if8472547eex.14. (process-send-string (get-buffer-process (current-buffer)) "1 CAPABILITY\r\n") * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY SASL-IR AUTH=XOAUTH. 1 OK Thats all she wrote! 44if8472547eex.14. --- However. :-) If I switch debugging off: //gnutls_global_set_log_level(4); //gnutls_global_set_log_function(gnutls_log_function); Then the handshake no longer works. That's odd? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen