Refactor the protocol NSM checks for flexibility
commit6584bc6720fce6a830ab18538f89acc80da597f1
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 24 Jun 2018 13:36:50 +0000 (24 15:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 24 Jun 2018 13:37:00 +0000 (24 15:37 +0200)
treef4b3c9d48fd6c8b9a36b1634e28c04e411089000
parent16c2f03c15078c4bd98c4b1e4d15701ba45550c3
Refactor the protocol NSM checks for flexibility

* doc/emacs/misc.texi (Network Security): Mention
network-security-protocol-checks.

* lisp/net/nsm.el (network-security-protocol-checks): New variable.
(nsm-check-protocol): Refactor the checks into separate functions
for greater flexibility.
(nsm-protocol-check--diffie-hellman-prime-bits)
(nsm-protocol-check--rc4, nsm-protocol-check--ssl)
(nsm-protocol-check--signature-sha1): Refactored out of the big
function.
doc/emacs/misc.texi
etc/NEWS
lisp/net/nsm.el