emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs core TLS support


From: Lars Magne Ingebrigtsen
Subject: Re: Emacs core TLS support
Date: Mon, 27 Sep 2010 16:40:09 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> 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.)
  address@hidden * Lars Magne Ingebrigtsen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]