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,gmane.comp.encryption.gpg.gnutls.devel Subject: Re: Emacs core TLS support Date: Mon, 27 Sep 2010 16:40:09 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <878wc1vfh3.fsf@lifelogs.com> <87wrrvfnc4.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285598440 31076 80.91.229.12 (27 Sep 2010 14:40:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 14:40:40 +0000 (UTC) Cc: gnutls-devel@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 27 16:40:39 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 1P0Esf-0001sg-EE for ged-emacs-devel@m.gmane.org; Mon, 27 Sep 2010 16:40:37 +0200 Original-Received: from localhost ([127.0.0.1]:59190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0Esf-00086a-0J for ged-emacs-devel@m.gmane.org; Mon, 27 Sep 2010 10:40:37 -0400 Original-Received: from [140.186.70.92] (port=43141 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0EsS-00086G-Vg for emacs-devel@gnu.org; Mon, 27 Sep 2010 10:40:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0EsO-0004vo-GF for emacs-devel@gnu.org; Mon, 27 Sep 2010 10:40:24 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:34941) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0EsO-0004vf-1r for emacs-devel@gnu.org; Mon, 27 Sep 2010 10:40:20 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P0EsN-0001lU-DR for emacs-devel@gnu.org; Mon, 27 Sep 2010 16:40:19 +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 16:40:19 +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 16:40:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 23 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:5YXoe+7uOcQH1ltApacMip4kIws= 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:130998 gmane.comp.encryption.gpg.gnutls.devel:4549 Archived-At: Lars Magne Ingebrigtsen writes: > If I return Qt when gnutls_handshake() returns zero, then I get the > Gmail IMAP greeting, which I think it works. > > I'll clean it up and see whether that really fixed this... I've checked in the changes, since it works a bit better now than before. Previously, it would try to do the handshake in a loop after completing it, and that obviously doesn't work. With my patch, this returns an IMAP greeting: (progn (require 'gnutls) (open-ssl-stream "tls" (current-buffer) "imap.gmail.com" "imaps")) However, it then loops taking 100% CPU, since _gnutls_read() is being called in an infloop since the socket in non-blocking, or something... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen