aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/nsm.el15
2 files changed, 12 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d4f1dbd2177..81e28726209 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-11-25 Teodor Zlatanov <tzz@lifelogs.com>
2
3 * net/nsm.el (nsm-check-tls-connection, nsm-save-host)
4 (nsm-warnings-ok-p): Use `gnutls-peer-status-warning-describe'.
5
12014-11-20 Nicolas Richard <theonewiththeevillook@yahoo.fr> 62014-11-20 Nicolas Richard <theonewiththeevillook@yahoo.fr>
2 7
3 * emacs-lisp/byte-run.el (function-put): Match argument names to 8 * emacs-lisp/byte-run.el (function-put): Match argument names to
diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el
index fdbcd13d3ee..35edd07fb6d 100644
--- a/lisp/net/nsm.el
+++ b/lisp/net/nsm.el
@@ -169,7 +169,9 @@ unencrypted."
169 host port 169 host port
170 (if (> (length warnings) 1) 170 (if (> (length warnings) 1)
171 "s" "") 171 "s" "")
172 (mapconcat 'cadr warnings "\n")))) 172 (mapconcat #'gnutls-peer-status-warning-describe
173 warnings
174 "\n"))))
173 (progn 175 (progn
174 (delete-process process) 176 (delete-process process)
175 nil) 177 nil)
@@ -298,7 +300,7 @@ unencrypted."
298 (nconc saved `(:conditions (:unencrypted)))) 300 (nconc saved `(:conditions (:unencrypted))))
299 ((plist-get status :warnings) 301 ((plist-get status :warnings)
300 (nconc saved 302 (nconc saved
301 `(:conditions ,(mapcar 'car (plist-get status :warnings))))))) 303 `(:conditions ,(plist-get status :warnings))))))
302 (if (eq permanency 'always) 304 (if (eq permanency 'always)
303 (progn 305 (progn
304 (nsm-remove-temporary-setting id) 306 (nsm-remove-temporary-setting id)
@@ -340,12 +342,9 @@ unencrypted."
340 result)) 342 result))
341 343
342(defun nsm-warnings-ok-p (status settings) 344(defun nsm-warnings-ok-p (status settings)
343 (let ((not-ok nil) 345 (null (cl-intersection
344 (conditions (plist-get settings :conditions))) 346 (plist-get settings :conditions)
345 (dolist (warning (plist-get status :warnings)) 347 (plist-get status :warnings))))
346 (when (memq (car warning) conditions)
347 (setq not-ok t)))
348 not-ok))
349 348
350(defun nsm-remove-permanent-setting (id) 349(defun nsm-remove-permanent-setting (id)
351 (setq nsm-permanent-host-settings 350 (setq nsm-permanent-host-settings