[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d5cf733 1/3: Change gnutls-verify-error to be first
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master d5cf733 1/3: Change gnutls-verify-error to be first-match |
Date: |
Fri, 13 Apr 2018 08:57:49 -0400 (EDT) |
branch: master
commit d5cf7330fa72a81b779628c14a0a19f3fc180f22
Author: Robert Pluim <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Change gnutls-verify-error to be first-match
* lisp/net/gnutls.el (gnutls-boot-parameters): Convert to
first-match for gnutls-verify-error rather than any-match
(bug#29977).
---
lisp/net/gnutls.el | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el
index 85c9308..cce4962 100644
--- a/lisp/net/gnutls.el
+++ b/lisp/net/gnutls.el
@@ -282,13 +282,9 @@ defaults to GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT."
t)
;; if a list, look for hostname matches
((listp gnutls-verify-error)
- (apply 'append
- (mapcar
- (lambda (check)
- (when (string-match (nth 0 check)
- hostname)
- (nth 1 check)))
- gnutls-verify-error)))
+ (cadr (cl-find-if #'(lambda (x)
+ (string-match (car x)
hostname))
+ gnutls-verify-error)))
;; else it's nil
(t nil))))
(min-prime-bits (or min-prime-bits gnutls-min-prime-bits)))