]> granicus.if.org Git - python/commitdiff
Merged revisions 85101 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 29 Sep 2010 11:30:52 +0000 (11:30 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 29 Sep 2010 11:30:52 +0000 (11:30 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85101 | antoine.pitrou | 2010-09-29 13:24:21 +0200 (mer., 29 sept. 2010) | 3 lines

  Issue #9983: warn that urllib and httplib don't perform SSL certificate validation.
........

Doc/library/httplib.rst
Doc/library/urllib.rst
Doc/library/urllib2.rst

index 58a59a81ae4d19c63ef8fd2376f21579cfe4c6e7..436857c9601dca0323e3dff38610e9b4d307f0df 100644 (file)
@@ -73,9 +73,8 @@ The module provides the following classes:
    formatted file that contains your private key. *cert_file* is a PEM formatted
    certificate chain file.
 
-   .. note::
-
-      This does not do any certificate verification.
+   .. warning::
+      This does not do any verification of the server's certificate.
 
    .. versionadded:: 2.0
 
index eacde19f50147d01858bbeaaafdc6402794a72c8..080d95d362ded69260016303f2918f2be131b64f 100644 (file)
@@ -23,6 +23,10 @@ built-in function :func:`open`, but accepts Universal Resource Locators (URLs)
 instead of filenames.  Some restrictions apply --- it can only open URLs for
 reading, and no seek operations are available.
 
+.. warning:: When opening HTTPS URLs, it is not attempted to validate the
+   server certificate.  Use at your own risk!
+
+
 High-level interface
 --------------------
 
index 973c098eb2c77e605f3bece54aefcbb1d1c094a8..b977c4da628c61386ca4c365f916c7d98c59426d 100644 (file)
@@ -18,6 +18,9 @@ The :mod:`urllib2` module defines functions and classes which help in opening
 URLs (mostly HTTP) in a complex world --- basic and digest authentication,
 redirections, cookies and more.
 
+.. warning:: When opening HTTPS (or FTPS) URLs, it is not attempted to
+   validate the server certificate.  Use at your own risk!
+
 The :mod:`urllib2` module defines the following functions: