Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7befee11
Commit
7befee11
authored
Dec 08, 2014
by
Lars Magne Ingebrigtsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/net/nsm.el (nsm-check-protocol): Test for RC4 on `high'.
parent
ad67503f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/net/nsm.el
lisp/net/nsm.el
+13
-2
No files found.
lisp/ChangeLog
View file @
7befee11
2014-12-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/nsm.el (nsm-check-protocol): Test for RC4 on `high'.
2014-12-08 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/gud.el (gud-gdb-completions): Remove unused var `start'.
...
...
lisp/net/nsm.el
View file @
7befee11
...
...
@@ -177,7 +177,11 @@ unencrypted."
process
))))))
(
defun
nsm-check-protocol
(
process
host
port
status
settings
)
(
let
((
prime-bits
(
plist-get
status
:diffie-hellman-prime-bits
)))
(
let
((
prime-bits
(
plist-get
status
:diffie-hellman-prime-bits
))
(
encryption
(
format
"%s-%s-%s"
(
plist-get
status
:key-exchange
)
(
plist-get
status
:cipher
)
(
plist-get
status
:mac
))))
(
cond
((
and
prime-bits
(
<
prime-bits
1024
)
...
...
@@ -186,10 +190,17 @@ unencrypted."
(
not
(
nsm-query
host
port
status
:diffie-hellman-prime-bits
"The Diffie-Hellman prime bits (%s) used for this connection to\n%s:%s\nis less than what is considere
r
safe (%s)."
"The Diffie-Hellman prime bits (%s) used for this connection to\n%s:%s\nis less than what is considere
d
safe (%s)."
prime-bits
host
port
1024
)))
(
delete-process
process
)
nil
)
((
and
(
string-match
"\\bRC4\\b"
encryption
)
(
not
(
memq
:rc4
(
plist-get
settings
:conditions
)))
(
not
(
nsm-query
host
port
status
:rc4
"The connection to %s:%s uses the RC4 algorithm (%s), which is believed to be unsafe."
host
port
encryption
))))
(
t
process
))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment