]> git.eshelyaron.com Git - emacs.git/commit
Add option to bypass NSM TLS checks on local networks
authorJimmy Yuen Ho Wong <wyuenho@gmail.com>
Tue, 10 Jul 2018 13:23:20 +0000 (14:23 +0100)
committerJimmy Yuen Ho Wong <wyuenho@gmail.com>
Sat, 14 Jul 2018 16:50:44 +0000 (17:50 +0100)
commit682578fcf74d4598e39eca81e09d81810d3fc28d
treed8a8f54c778a831229405cd9706066ac582d3826
parent534a3d5d3a99a6b86a47b3d91840ce8771ee0ae6
Add option to bypass NSM TLS checks on local networks

* lisp/net/net-utils.el (nslookup-host-ipv4, nslookup-host-ipv6,
  ipv6-expand): New functions to lookup IPv4 and IPv6 addresses from
  DNS.

* lisp/net/nsm.el (nsm-trust-local-network, nsm-should-check,
  nsm-check-tls-connection, nsm-check-plain-connection): New defcustom
  `nsm-trust-local-network' lets users customize whether NSM should
  check for TLS problems when connecting to the hosts on their local
  networks.  `nsm-should-check' determines whether
  `nsm-check-tls-connection' and `nsm-check-plain-connection' should
  perform checks.  localhost is implicitly trusted, thus checks are
  never performed there.
lisp/net/net-utils.el
lisp/net/nsm.el