* url-gw.el (url-open-stream): Use open-gnutls-stream if it exists.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 14 Oct 2010 21:35:03 +0000 (23:35 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 14 Oct 2010 21:35:03 +0000 (23:35 +0200)
lisp/url/ChangeLog
lisp/url/url-gw.el

index 4c4af45..4ef2b42 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * url-gw.el (url-open-stream): Use open-gnutls-stream if it exists.
+
 2010-10-07  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * url-http.el (url-http-end-of-document-sentinel): Protect against
index 714d12f..4358255 100644 (file)
@@ -245,7 +245,10 @@ Might do a non-blocking connection; use `process-status' to check."
                (coding-system-for-write 'binary))
            (setq conn (case gw-method
                         (tls
-                         (open-tls-stream name buffer host service))
+                         (funcall (if (fboundp 'open-gnutls-stream)
+                                      'open-gnutls-stream
+                                    'open-tls-stream)
+                                  name buffer host service))
                         (ssl
                          (open-ssl-stream name buffer host service))
                         ((native)