Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Signal error if gnutls-cli cannot be found in rudel-tls.el

* tls/rudel-tls.el (rudel-tls-client-program): use `executable-find'
  to set the default value of the option
  (rudel-start-tls-backend::initialize-instance): signal an error
  unless `rudel-tls-client-program' has a usable value
  • Loading branch information...
commit 2ff101a84e3590d1e152ffe90fec585bac3b6b12 1 parent 8bef3d3
@scymtym authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 tls/rudel-tls.el
7 tls/rudel-tls.el
@@ -50,7 +50,7 @@
(defcustom rudel-tls-client-program
- "gnutls-cli"
+ (executable-find "gnutls-cli")
"The gnutls client program to use for encrypted connections."
:group 'rudel
:type 'file)
@@ -256,7 +256,10 @@ support STARTTLS behavior.")
(when (next-method-p)
- (oset this :version rudel-tls-version))
+ (oset this :version rudel-tls-version)
+ (unless rudel-tls-client-program
+ (error "Required program 'gnutls-cli' not available")))
(defmethod rudel-ask-connect-info ((this rudel-start-tls-backend)
&optional info)

0 comments on commit 2ff101a

Please sign in to comment.
Something went wrong with that request. Please try again.