aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-09-29 15:25:24 +0200
committerLars Magne Ingebrigtsen2010-09-29 15:25:24 +0200
commitbac5cef8cc902c7332ef66f6731fa5be0866811c (patch)
tree060d740fcae01d8b4c80c76a24d871c24006cdf1 /lisp
parentdf7fcafff05c4002f35e507c65518f4b20ba5382 (diff)
downloademacs-bac5cef8cc902c7332ef66f6731fa5be0866811c.tar.gz
emacs-bac5cef8cc902c7332ef66f6731fa5be0866811c.zip
Do the gnutls handshake from the reader loop, instead of looping over
the handshake from Emacs Lisp.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/net/gnutls.el11
2 files changed, 2 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 44cb82b4c7b..3ca07c33e15 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,8 @@
12010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org> 12010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * net/gnutls.el (starttls-negotiate): Loop a lot longer. 3 * net/gnutls.el (starttls-negotiate): Loop a lot longer.
4 (starttls-negotiate): Just call boot, and let the handshake be
5 triggered from the read loop.
4 6
52010-09-29 Glenn Morris <rgm@gnu.org> 72010-09-29 Glenn Morris <rgm@gnu.org>
6 8
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el
index e1d093ebf79..27d44d32bd3 100644
--- a/lisp/net/gnutls.el
+++ b/lisp/net/gnutls.el
@@ -87,17 +87,6 @@ CREDENTIALS-FILE is a filename with meaning dependent on CREDENTIALS."
87 nil nil gnutls-log-level)) 87 nil nil gnutls-log-level))
88 "boot: %s") 88 "boot: %s")
89 89
90 (when (gnutls-errorp ret)
91 (error "Could not boot GnuTLS for this process"));
92
93 (let ((ret 'gnutls-e-again)
94 (n 250000))
95 (while (and (not (eq ret t))
96 (not (gnutls-error-fatalp ret))
97 (> n 0))
98 (setq n (1- n))
99 (setq ret (gnutls-handshake proc)))
100 (message "Handshake complete %s." ret))
101 proc)) 90 proc))
102 91
103(defun starttls-open-stream (name buffer host service) 92(defun starttls-open-stream (name buffer host service)