Upgraded to MH-E version 7.4.80.
[bpt/emacs.git] / lisp / url / url-https.el
CommitLineData
8c8b8430 1;;; url-https.el --- HTTP over SSL routines
3abd7705
SM
2
3;; Copyright (c) 1999, 2004 Free Software Foundation, Inc.
4
8c8b8430
SM
5;; Keywords: comm, data, processes
6
3abd7705
SM
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., 59 Temple Place - Suite 330,
22;; Boston, MA 02111-1307, USA.
23
24;;; Commentary:
25
26;;; Code:
8c8b8430
SM
27
28(require 'url-gw)
29(require 'url-util)
30(require 'url-parse)
31(require 'url-cookie)
32(require 'url-http)
33
34(defconst url-https-default-port 443 "Default HTTPS port.")
35(defconst url-https-asynchronous-p t "HTTPS retrievals are asynchronous.")
36(defalias 'url-https-expand-file-name 'url-http-expand-file-name)
37
38(defmacro url-https-create-secure-wrapper (method args)
39c54103
SM
39 `(defun ,(intern (format (if method "url-https-%s" "url-https") method)) ,args
40 ,(format "HTTPS wrapper around `%s' call." (or method "url-http"))
41 (condition-case ()
42 (require 'ssl)
43 (error
44 (error "HTTPS support could not find `ssl' library")))
45 (let ((url-gateway-method 'ssl))
46 ( ,(intern (format (if method "url-http-%s" "url-http") method)) ,@(remove '&rest (remove '&optional args))))))
8c8b8430
SM
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))
3abd7705 51(url-https-create-secure-wrapper file-attributes (url &optional id-format))
8c8b8430
SM
52
53(provide 'url-https)
e5566bd5 54
3abd7705
SM
55;; arch-tag: c3645ac5-c248-4d12-ad41-7c4b6f7b6d19
56;;; url-https.el ends here