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 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




reply via email to

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