From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dhruva Newsgroups: gmane.emacs.devel Subject: Re: Emacs and TLS support Date: Mon, 27 Sep 2010 08:48:22 +0530 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285557519 29901 80.91.229.12 (27 Sep 2010 03:18:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 03:18:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 27 05:18:38 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 1P04Ef-00027Y-F7 for ged-emacs-devel@m.gmane.org; Mon, 27 Sep 2010 05:18:37 +0200 Original-Received: from localhost ([127.0.0.1]:43904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P04Ee-0007VE-9V for ged-emacs-devel@m.gmane.org; Sun, 26 Sep 2010 23:18:36 -0400 Original-Received: from [140.186.70.92] (port=39972 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P04EW-0007V9-8n for emacs-devel@gnu.org; Sun, 26 Sep 2010 23:18:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P04ER-0007gB-NU for emacs-devel@gnu.org; Sun, 26 Sep 2010 23:18:28 -0400 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:49011) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P04ER-0007g4-Kn for emacs-devel@gnu.org; Sun, 26 Sep 2010 23:18:23 -0400 Original-Received: by qyk36 with SMTP id 36so60906qyk.0 for ; Sun, 26 Sep 2010 20:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=19dQQBXZXcU4T4GWVMlvkIZyAAo9QRitGmbpCc7NRfw=; b=kzMiH6AjQ/ADcZu4x/c2LCpk7/SR3d7LZj4b53YpkwF3uGNhlz1J3C3SbJkvdKrogF 1cuPYRUJFmJ0fOB3++KBTVwf3scWbguHAmsA7R2XeaTC0D20AkHlEdMcesgzN8M8lTt2 guoqB4chC3YRoHwHa7UwIl7ClCVvllTizwHjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=GBz3LcnvxxlukHeXaduHkqOc20qE4R7FAo+3qZ39g0KbW7bnIXUKs6dYU3Idh7xs2i wSwnHRXw6wTY/R2bjvLLlLu4Rwn6MH4OgXMJU9wHuDCp99ms31yI4vxVSDyaoqab6Vww 3GnzUhZ3gAyOkWp5lV6Sm3aXTrhT0d8nKPFhg= Original-Received: by 10.220.98.146 with SMTP id q18mr2353468vcn.113.1285557502616; Sun, 26 Sep 2010 20:18:22 -0700 (PDT) Original-Received: by 10.220.124.73 with HTTP; Sun, 26 Sep 2010 20:18:22 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:130966 Archived-At: > From:=A0Ted Zlatanov > To:=A0emacs-devel@gnu.org > Date:=A0Sun, 26 Sep 2010 16:33:04 -0500 > Subject:=A0Re: Emacs and TLS support > On Sun, 26 Sep 2010 23:06:46 +0200 Lars Magne Ingebrigtsen wrote: > > It would be great if the GnuTLS developers could comment. =A0But these > references seem to specifically confirm that non-blocking sockets should > work the way I'm doing it: > > http://lists.gnupg.org/pipermail/gnutls-dev/2005-March/000839.html > http://www.gnu.org/software/gnutls/manual/html_node/The-transport-layer.h= tml > > I tried setting the low water value to 0 in `Fgnutls_handshake' after > `gnutls_transport_set_ptr2' but it didn't make a difference: > > =A0 =A0gnutls_transport_set_lowat (state, 0); > > So I removed it in the patch. =A0I sort of suspect right now that > recv/send are not working correctly so I need to provide custom versions > with `gnutls_transport_set_pull_function' and > `gnutls_transport_set_push_function'. =A0But I don't know enough about th= e > Emacs internals that set up processes, which are ridiculously > complicated because of all the supported platforms. =A0And Simon Josefsso= n > said his patch worked when he first wrote it, so I assumed that this > kind of deep surgery would not be required. > Not sure if this is related to the thread. I am having problems using gnutls to access my company (M$ Exchange) mail using imap. This used to work ~2 weeks back though. I had not done any specific setting to use gnutls-client but now I see it barfing with error (unable to handshake). I did a bit of troubleshooting. I executed the same program "gnutls-cli" from command line and found same error. I later installed starttls package and used that to connect from command line and it worked! Now, I try to cajole gnus to use starttls, it just refuses to use it and keeps defaulting to gnutls-cli or openssl. This is when I stopped and decided to take a break. If someone can help me use starttls through gnus, I can try to capture the packets with gnutls-cli and starttls and hope it can throw some light. Let me try doing that with command line since starttls works and gnutls-cli does not. -dhruva