[Top][All Lists]
[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 17:07:51 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Bruce Stephens <address@hidden> 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.)
address@hidden * Lars Magne Ingebrigtsen
- Re: Emacs core TLS support, (continued)
- Re: Emacs core TLS support, Ted Zlatanov, 2010/09/26
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/26
- Re: Emacs core TLS support, James Cloos, 2010/09/26
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Ted Zlatanov, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Bruce Stephens, 2010/09/27
- Re: Emacs core TLS support,
Lars Magne Ingebrigtsen <=
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Ted Zlatanov, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/27
- Re: Emacs core TLS support, Ted Zlatanov, 2010/09/27
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/29
- Re: Emacs core TLS support, Lars Magne Ingebrigtsen, 2010/09/29
- Re: Emacs core TLS support, Jason Earl, 2010/09/29
- Re: Emacs core TLS support, Ted Zlatanov, 2010/09/29