diff options
| author | Lars Magne Ingebrigtsen | 2014-12-11 16:57:33 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2014-12-11 16:57:33 +0100 |
| commit | c6f03ed03d68e52e8b18011d2c57959532b45fb5 (patch) | |
| tree | fe49e61ca11b8f25e67bf11a8c9a03ef15c32ee6 /lisp | |
| parent | 3e92b9882bc5218a5b5962f9e85d0cbca719afc8 (diff) | |
| download | emacs-c6f03ed03d68e52e8b18011d2c57959532b45fb5.tar.gz emacs-c6f03ed03d68e52e8b18011d2c57959532b45fb5.zip | |
Fix a problem in url.el without GnuTLS
Fixes: debbugs:19346
* lisp/url/url-http.el (url-http-parse-headers): Check that
`gnutls-available-p' is defined.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 690f6991910..8ff78ee5b2e 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-12-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * url-http.el (url-http-parse-headers): Check that | ||
| 4 | `gnutls-available-p' is defined (bug#19346). | ||
| 5 | |||
| 1 | 2014-12-09 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2014-12-09 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * url-http.el (url-http-parse-headers): Pass the GnuTLS status of | 8 | * url-http.el (url-http-parse-headers): Pass the GnuTLS status of |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 34d325acf56..33e333d8e8c 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -495,7 +495,8 @@ should be shown to the user." | |||
| 495 | (url-port url-current-object) | 495 | (url-port url-current-object) |
| 496 | url-http-process) | 496 | url-http-process) |
| 497 | ;; Pass the https certificate on to the caller. | 497 | ;; Pass the https certificate on to the caller. |
| 498 | (when (gnutls-available-p) | 498 | (when (and (fboundp 'gnutls-available-p) |
| 499 | (gnutls-available-p)) | ||
| 499 | (let ((status (gnutls-peer-status url-http-process))) | 500 | (let ((status (gnutls-peer-status url-http-process))) |
| 500 | (when (or status | 501 | (when (or status |
| 501 | (plist-get (car url-callback-arguments) :peer)) | 502 | (plist-get (car url-callback-arguments) :peer)) |