diff options
Diffstat (limited to 'lisp/url/url-https.el')
| -rw-r--r-- | lisp/url/url-https.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/url/url-https.el b/lisp/url/url-https.el index 9754cd1b976..0ea11a45b79 100644 --- a/lisp/url/url-https.el +++ b/lisp/url/url-https.el | |||
| @@ -33,14 +33,14 @@ | |||
| 33 | (defalias 'url-https-expand-file-name 'url-http-expand-file-name) | 33 | (defalias 'url-https-expand-file-name 'url-http-expand-file-name) |
| 34 | 34 | ||
| 35 | (defmacro url-https-create-secure-wrapper (method args) | 35 | (defmacro url-https-create-secure-wrapper (method args) |
| 36 | (` (defun (, (intern (format (if method "url-https-%s" "url-https") method))) (, args) | 36 | `(defun ,(intern (format (if method "url-https-%s" "url-https") method)) ,args |
| 37 | (, (format "HTTPS wrapper around `%s' call." (or method "url-http"))) | 37 | ,(format "HTTPS wrapper around `%s' call." (or method "url-http")) |
| 38 | (condition-case () | 38 | (condition-case () |
| 39 | (require 'ssl) | 39 | (require 'ssl) |
| 40 | (error | 40 | (error |
| 41 | (error "HTTPS support could not find `ssl' library."))) | 41 | (error "HTTPS support could not find `ssl' library"))) |
| 42 | (let ((url-gateway-method 'ssl)) | 42 | (let ((url-gateway-method 'ssl)) |
| 43 | ((, (intern (format (if method "url-http-%s" "url-http") method))) (,@ (remove '&rest (remove '&optional args)))))))) | 43 | ( ,(intern (format (if method "url-http-%s" "url-http") method)) ,@(remove '&rest (remove '&optional args)))))) |
| 44 | 44 | ||
| 45 | (url-https-create-secure-wrapper nil (url callback cbargs)) | 45 | (url-https-create-secure-wrapper nil (url callback cbargs)) |
| 46 | (url-https-create-secure-wrapper file-exists-p (url)) | 46 | (url-https-create-secure-wrapper file-exists-p (url)) |