aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-09-27 18:44:31 +0200
committerLars Magne Ingebrigtsen2010-09-27 18:44:31 +0200
commit8ed70bf3167e37c8c15fb3d3286dfb1eb696a85a (patch)
tree6a774f238b22a7bfe1dae8477d02c91907c63a42 /lisp
parentbedf4aabcfdeeb65a8e6050b1f192cbd679a4172 (diff)
downloademacs-8ed70bf3167e37c8c15fb3d3286dfb1eb696a85a.tar.gz
emacs-8ed70bf3167e37c8c15fb3d3286dfb1eb696a85a.zip
Add gnutls logging and clean up various gnutls bits.
From: Teodor Zlatanov <tzz@lifelogs.com>
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/gnutls.el14
2 files changed, 19 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3d66ee0984c..a19c80c0d1b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
2
3 * net/gnutls.el (gnutls, gnutls-log-level): Add group and custom
4 variable.
5 (starttls-negotiate): Use it.
6
12010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org> 72010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 8
3 * net/gnutls.el (starttls-negotiate): Stop looping when we get a t 9 * net/gnutls.el (starttls-negotiate): Stop looping when we get a t
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el
index b393d237d90..6a2d5aff68f 100644
--- a/lisp/net/gnutls.el
+++ b/lisp/net/gnutls.el
@@ -32,6 +32,16 @@
32 32
33;;; Code: 33;;; Code:
34 34
35(defgroup gnutls nil
36 "Emacs interface to the GnuTLS library."
37 :prefix "gnutls-"
38 :group 'net-utils)
39
40(defcustom gnutls-log-level 2
41 "Logging level to be used by `starttls-negotiate' and GnuTLS."
42 :type 'integer
43 :group 'gnutls)
44
35(defun open-ssl-stream (name buffer host service) 45(defun open-ssl-stream (name buffer host service)
36 "Open a SSL connection for a service to a host. 46 "Open a SSL connection for a service to a host.
37Returns a subprocess-object to represent the connection. 47Returns a subprocess-object to represent the connection.
@@ -72,7 +82,9 @@ CREDENTIALS-FILE is a filename with meaning dependent on CREDENTIALS."
72 ret) 82 ret)
73 83
74 (gnutls-message-maybe 84 (gnutls-message-maybe
75 (setq ret (gnutls-boot proc priority-string credentials credentials-file)) 85 (setq ret (gnutls-boot proc priority-string
86 credentials credentials-file
87 nil nil gnutls-log-level))
76 "boot: %s") 88 "boot: %s")
77 89
78 (when (gnutls-errorp ret) 90 (when (gnutls-errorp ret)