aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Henoch2006-10-11 20:58:36 +0000
committerMagnus Henoch2006-10-11 20:58:36 +0000
commit9c51663a06a47baac340d17d62bddae27e0deb7e (patch)
tree55b71451d42513cd71f1ebf11d10eab9c3ee1e02
parent8972d253c2b6aedc34286c6152ec1f69fa6c4528 (diff)
downloademacs-9c51663a06a47baac340d17d62bddae27e0deb7e.tar.gz
emacs-9c51663a06a47baac340d17d62bddae27e0deb7e.zip
url-https.el: Remove (clashes with url-http on 8+3 systems).
url-http.el: Move contents of url-https.el here. Add autoloads.
-rw-r--r--lisp/url/ChangeLog6
-rw-r--r--lisp/url/url-http.el29
-rw-r--r--lisp/url/url-https.el56
3 files changed, 35 insertions, 56 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index c8b33f5f1c2..dae82b2b900 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,9 @@
12006-10-11 Magnus Henoch <mange@freemail.hu>
2
3 * url-https.el: Remove (clashes with url-http on 8+3 systems).
4
5 * url-http.el: Move contents of url-https.el here. Add autoloads.
6
12006-10-09 Magnus Henoch <mange@freemail.hu> 72006-10-09 Magnus Henoch <mange@freemail.hu>
2 8
3 * url-parse.el (url-generic-parse-url): Handle URLs with empty 9 * url-parse.el (url-generic-parse-url): Handle URLs with empty
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 1b8bc459f49..3e74839dcb9 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1245,6 +1245,35 @@ p3p
1245 (if buffer (kill-buffer buffer)) 1245 (if buffer (kill-buffer buffer))
1246 options)) 1246 options))
1247 1247
1248;; HTTPS. This used to be in url-https.el, but that file collides
1249;; with url-http.el on systems with 8-character file names.
1250(require 'tls)
1251
1252;;;###autoload
1253(defconst url-https-default-port 443 "Default HTTPS port.")
1254;;;###autoload
1255(defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.")
1256;;;###autoload
1257(defalias 'url-https-expand-file-name 'url-http-expand-file-name)
1258
1259(defmacro url-https-create-secure-wrapper (method args)
1260 `(defun ,(intern (format (if method "url-https-%s" "url-https") method)) ,args
1261 ,(format "HTTPS wrapper around `%s' call." (or method "url-http"))
1262 (let ((url-gateway-method (condition-case ()
1263 (require 'ssl)
1264 (error 'tls))))
1265 (,(intern (format (if method "url-http-%s" "url-http") method))
1266 ,@(remove '&rest (remove '&optional args))))))
1267
1268;;;###autoload (autoload 'url-https "url-http")
1269(url-https-create-secure-wrapper nil (url callback cbargs))
1270;;;###autoload (autoload 'url-https-file-exists-p "url-http")
1271(url-https-create-secure-wrapper file-exists-p (url))
1272;;;###autoload (autoload 'url-https-file-readable-p "url-http")
1273(url-https-create-secure-wrapper file-readable-p (url))
1274;;;###autoload (autoload 'url-https-file-attributes "url-http")
1275(url-https-create-secure-wrapper file-attributes (url &optional id-format))
1276
1248(provide 'url-http) 1277(provide 'url-http)
1249 1278
1250;; arch-tag: ba7c59ae-c0f4-4a31-9617-d85f221732ee 1279;; arch-tag: ba7c59ae-c0f4-4a31-9617-d85f221732ee
diff --git a/lisp/url/url-https.el b/lisp/url/url-https.el
deleted file mode 100644
index a7440a76535..00000000000
--- a/lisp/url/url-https.el
+++ /dev/null
@@ -1,56 +0,0 @@
1;;; url-https.el --- HTTP over SSL/TLS routines
2
3;; Copyright (C) 1999, 2004, 2005, 2006 Free Software Foundation, Inc.
4
5;; Keywords: comm, data, processes
6
7;; This file is part of GNU Emacs.
8;;
9;; GNU Emacs is free software; you can redistribute it and/or modify
10;; it under the terms of the GNU General Public License as published by
11;; the Free Software Foundation; either version 2, or (at your option)
12;; any later version.
13;;
14;; GNU Emacs is distributed in the hope that it will be useful,
15;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;; GNU General Public License for more details.
18;;
19;; You should have received a copy of the GNU General Public License
20;; along with GNU Emacs; see the file COPYING. If not, write to the
21;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22;; Boston, MA 02110-1301, USA.
23
24;;; Commentary:
25
26;;; Code:
27
28(require 'url-gw)
29(require 'url-util)
30(require 'url-parse)
31(require 'url-cookie)
32(require 'url-http)
33(require 'tls)
34
35(defconst url-https-default-port 443 "Default HTTPS port.")
36(defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.")
37(defalias 'url-https-expand-file-name 'url-http-expand-file-name)
38
39(defmacro url-https-create-secure-wrapper (method args)
40 `(defun ,(intern (format (if method "url-https-%s" "url-https") method)) ,args
41 ,(format "HTTPS wrapper around `%s' call." (or method "url-http"))
42 (let ((url-gateway-method (condition-case ()
43 (require 'ssl)
44 (error 'tls))))
45 (,(intern (format (if method "url-http-%s" "url-http") method))
46 ,@(remove '&rest (remove '&optional args))))))
47
48(url-https-create-secure-wrapper nil (url callback cbargs))
49(url-https-create-secure-wrapper file-exists-p (url))
50(url-https-create-secure-wrapper file-readable-p (url))
51(url-https-create-secure-wrapper file-attributes (url &optional id-format))
52
53(provide 'url-https)
54
55;; arch-tag: c3645ac5-c248-4d12-ad41-7c4b6f7b6d19
56;;; url-https.el ends here