diff options
author | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2010-09-27 16:35:22 +0200 |
---|---|---|
committer | Lars Magne Ingebrigtsen <larsi@gnus.org> | 2010-09-27 16:35:22 +0200 |
commit | d2e9d0bbb2d63fc9588d8b2a13b46be8c67dd944 (patch) | |
tree | 18d0ef16bc60414186e2da5848266546f5ce077f /lisp/net/gnutls.el | |
parent | 14db1c41108e7d2874ec9c5fb653f154228acd7b (diff) | |
download | emacs-d2e9d0bbb2d63fc9588d8b2a13b46be8c67dd944.tar.gz |
Add debugging to the gnutls library, and finish handshaking when it's done.
Diffstat (limited to 'lisp/net/gnutls.el')
-rw-r--r-- | lisp/net/gnutls.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el index 7a2571f8a7c..b393d237d90 100644 --- a/lisp/net/gnutls.el +++ b/lisp/net/gnutls.el @@ -80,13 +80,11 @@ CREDENTIALS-FILE is a filename with meaning dependent on CREDENTIALS." (let ((ret 'gnutls-e-again) (n 25000)) - (while (and (not (gnutls-error-fatalp ret)) + (while (and (not (eq ret t)) + (not (gnutls-error-fatalp ret)) (> n 0)) (setq n (1- n)) - (gnutls-message-maybe - (setq ret (gnutls-handshake proc)) - "handshake: %s") - ;(debug "handshake ret" ret (gnutls-error-string ret))) + (setq ret (gnutls-handshake proc)) ) (if (gnutls-errorp ret) (progn |