Skip to content

Commit

Permalink
core: add startup message for GnuTLS work-around
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Sep 15, 2019
1 parent b1742aa commit 534c5fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/core-emacs-backports.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
;; Hack to prevent TLS error with Emacs 26.1 and 26.2 and gnutls 3.6.4 and above
;; see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
(ignore-errors
(message "Testing if your Emacs version needs the TLS work-around...")
(message "More info at https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341")
(with-current-buffer (url-retrieve-synchronously "https://api.github.com/users/syl20bnr/repos")
(when (string-empty-p (buffer-string))
(message "Your Emacs and GnutTLS versions need the work-around, applying it...")
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")))))

(provide 'core-emacs-backports)

0 comments on commit 534c5fd

Please sign in to comment.