Require `gnutls' when setting `gnutls-trustfiles'
This commit is contained in:
parent
f5061aa849
commit
4621ed98f0
|
@ -247,6 +247,7 @@ Will print a warning in case of failure."
|
||||||
Assumes that NEW-VALUE points to a directory, and certificates
|
Assumes that NEW-VALUE points to a directory, and certificates
|
||||||
are assumed to be of the form *.crt."
|
are assumed to be of the form *.crt."
|
||||||
(set symbol new-value)
|
(set symbol new-value)
|
||||||
|
(require 'gnutls)
|
||||||
(when (file-directory-p new-value)
|
(when (file-directory-p new-value)
|
||||||
(dolist (cert-file (directory-files new-value t ".crt$"))
|
(dolist (cert-file (directory-files new-value t ".crt$"))
|
||||||
(add-to-list 'gnutls-trustfiles cert-file))))
|
(add-to-list 'gnutls-trustfiles cert-file))))
|
||||||
|
|
Loading…
Reference in New Issue