diff options
| author | Lars Ingebrigtsen | 2018-06-24 15:36:50 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-06-24 15:37:00 +0200 |
| commit | 6584bc6720fce6a830ab18538f89acc80da597f1 (patch) | |
| tree | f4b3c9d48fd6c8b9a36b1634e28c04e411089000 /doc | |
| parent | 16c2f03c15078c4bd98c4b1e4d15701ba45550c3 (diff) | |
| download | emacs-6584bc6720fce6a830ab18538f89acc80da597f1.tar.gz emacs-6584bc6720fce6a830ab18538f89acc80da597f1.zip | |
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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/misc.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index 24586eb2813..177cc8fa469 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi | |||
| @@ -402,6 +402,22 @@ This means that one can't casually read the settings file to see what | |||
| 402 | servers the user has connected to. If this variable is @code{t}, | 402 | servers the user has connected to. If this variable is @code{t}, |
| 403 | @acronym{NSM} will also save host names in the | 403 | @acronym{NSM} will also save host names in the |
| 404 | @code{nsm-settings-file}. | 404 | @code{nsm-settings-file}. |
| 405 | |||
| 406 | @item network-security-protocol-checks | ||
| 407 | @vindex network-security-protocol-checks | ||
| 408 | The protocol network checks (mostly for @acronym{TLS} weaknesses) is | ||
| 409 | controlled via the @code{network-security-protocol-checks} variable. | ||
| 410 | |||
| 411 | It's an alist where the first element is the name of the check, | ||
| 412 | the second is the security level where the check kicks in, and the | ||
| 413 | optional third element is a parameter supplied to the check. | ||
| 414 | |||
| 415 | An element like @code{(rc4 medium)} will result in the function | ||
| 416 | @code{nsm-protocol-check--rc4} being called like thus: | ||
| 417 | @code{(nsm-protocol-check--rc4 host port status optional-parameter)}. | ||
| 418 | The function should return non-@code{nil} if the connection should | ||
| 419 | proceed and @code{nil} otherwise. | ||
| 420 | |||
| 405 | @end table | 421 | @end table |
| 406 | 422 | ||
| 407 | 423 | ||