Support INSECURE envvar (again)

This commit is contained in:
Henrik Lissner 2019-10-26 13:49:33 -04:00
parent 515fba2fda
commit 5b1dc3c63f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -170,7 +170,7 @@ users).")
;; Emacs is a huge security vulnerability, what with all the dependencies it
;; pulls in from all corners of the globe. Let's at least try to be more
;; discerning.
(setq gnutls-verify-error t
(setq gnutls-verify-error (getenv "INSECURE")
tls-checktrust gnutls-verify-error
tls-program '("gnutls-cli --x509cafile %t -p %p %h"
;; compatibility fallbacks