diff options
| author | Robert Pluim | 2019-09-02 14:55:00 +0200 |
|---|---|---|
| committer | Robert Pluim | 2019-09-04 23:46:31 +0200 |
| commit | 95becaaf3b65d6227a41f4cb3f0f114bcfbe5562 (patch) | |
| tree | 7212b0742a0f694cb5e89b4ad079e4ed5278590d | |
| parent | a8432661130ac73ecf7606b1132e9b0d388ab60f (diff) | |
| download | emacs-95becaaf3b65d6227a41f4cb3f0f114bcfbe5562.tar.gz emacs-95becaaf3b65d6227a41f4cb3f0f114bcfbe5562.zip | |
Don't check for :safe-renegotiation with TLS1.3
* lisp/net/nsm.el (nsm-protocol-check--renegotiation-info-ext): Don't
check when using TLS1.3, renegotiation has been removed from TLS.
Reported in
<https://lists.gnu.org/archive/html/help-gnu-emacs/2019-09/msg00005.html>
| -rw-r--r-- | lisp/net/nsm.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el index 8750c19267a..2121fdeb519 100644 --- a/lisp/net/nsm.el +++ b/lisp/net/nsm.el | |||
| @@ -665,17 +665,19 @@ the MD5 Message-Digest and the HMAC-MD5 Algorithms\", | |||
| 665 | If this TLS extension is not used, the connection established is | 665 | If this TLS extension is not used, the connection established is |
| 666 | vulnerable to an attack in which an impersonator can extract | 666 | vulnerable to an attack in which an impersonator can extract |
| 667 | sensitive information such as HTTP session ID cookies or login | 667 | sensitive information such as HTTP session ID cookies or login |
| 668 | passwords. | 668 | passwords. Renegotiation was removed in TLS1.3, so this is only |
| 669 | checked for earlier protocol versions. | ||
| 669 | 670 | ||
| 670 | Reference: | 671 | Reference: |
| 671 | 672 | ||
| 672 | E. Rescorla, M. Ray, S. Dispensa, N. Oskov (Feb 2010). \"Transport | 673 | E. Rescorla, M. Ray, S. Dispensa, N. Oskov (Feb 2010). \"Transport |
| 673 | Layer Security (TLS) Renegotiation Indication Extension\", | 674 | Layer Security (TLS) Renegotiation Indication Extension\", |
| 674 | `https://tools.ietf.org/html/rfc5746'" | 675 | `https://tools.ietf.org/html/rfc5746'" |
| 675 | (let ((unsafe-renegotiation (not (plist-get status :safe-renegotiation)))) | 676 | (when (plist-member status :safe-renegotiation) |
| 676 | (and unsafe-renegotiation | 677 | (let ((unsafe-renegotiation (not (plist-get status :safe-renegotiation)))) |
| 677 | (format-message | 678 | (and unsafe-renegotiation |
| 678 | "safe renegotiation is not supported, connection not protected from impersonators")))) | 679 | (format-message |
| 680 | "safe renegotiation is not supported, connection not protected from impersonators"))))) | ||
| 679 | 681 | ||
| 680 | ;; Compression checks | 682 | ;; Compression checks |
| 681 | 683 | ||