summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #10989: Fix a crash on SSLContext.load_verify_locations(None, True).Victor Stinner2011-01-291-0/+3
| | | | Patch reviewed by Antoine Pitrou, okayed by Georg Brandl.
* Fix test_ssl after r87849Antoine Pitrou2011-01-081-1/+1
|
* test_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.deVictor Stinner2011-01-081-2/+2
|
* Issue #10272: The ssl module now raises socket.timeout instead of a genericAntoine Pitrou2010-12-031-2/+2
| | | | SSLError on socket timeouts.
* #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-20/+20
| | | | assertRaisesRegex.
* Issue #10443: Add the SSLContext.set_default_verify_paths() method.Antoine Pitrou2010-11-171-0/+6
|
* Issue #10022: The dictionary returned by the `getpeercert()` methodAntoine Pitrou2010-11-091-1/+6
| | | | of SSL sockets now has additional items such as `issuer` and `notBefore`.
* Clean up socket closing in test_ssl and test.ssl_serversAntoine Pitrou2010-10-291-23/+31
|
* Remove usage of exception indexing.Georg Brandl2010-10-241-1/+1
|
* Fix test_ssl on Ubuntu buildbot with patched OpenSSLAntoine Pitrou2010-10-221-0/+1
|
* Issue #5639: Add a *server_hostname* argument to `SSLContext.wrap_socket`Antoine Pitrou2010-10-221-0/+16
| | | | | | in order to support the TLS SNI extension. `HTTPSConnection` and `urlopen()` also use this argument, so that HTTPS virtual hosts are now supported.
* Let test_ssl fail gracefully if ssl support is not availableAntoine Pitrou2010-10-131-14/+6
|
* Issue #9003: http.client.HTTPSConnection, urllib.request.HTTPSHandler andAntoine Pitrou2010-10-131-117/+15
| | | | | urllib.request.urlopen now take optional arguments to allow for server certificate checking, as recommended in public uses of HTTPS.
* Issue #10075: Add a session_stats() method to SSLContext objects.Antoine Pitrou2010-10-121-0/+17
|
* Issue #1051: Add a script (Lib/test/make_ssl_certs.py) to generate theAntoine Pitrou2010-10-081-1/+6
| | | | custom certificate and private key files used by SSL-related certs.
* Issue #1589: Add ssl.match_hostname(), to help implement server identityAntoine Pitrou2010-10-081-0/+71
| | | | verification for higher-level protocols.
* Fix issue 6706: adds new handle_accepted() method to asyncore.dispatcherGiampaolo Rodolà2010-10-041-2/+1
|
* Issue #9853: Fix the signature of SSLSocket.recvfrom() andAntoine Pitrou2010-09-141-0/+12
| | | | SSLSocket.sendto() to match the corresponding socket methods.
* Use transient_internet() where appropriate in test_sslAntoine Pitrou2010-09-091-130/+131
| | | | (svn.python.org is sometimes unavailable)
* Issue #8574: better implementation of test.support.transient_internet().Antoine Pitrou2010-09-071-4/+4
| | | | Original patch by Victor.
* Fix issue #9711: raise ValueError is SSLConnection constructor is invoked ↵Giampaolo Rodolà2010-08-301-7/+12
| | | | with keyfile and not certfile.
* dedent some lines in test_ssl so that they are actually executedGiampaolo Rodolà2010-08-291-10/+10
|
* in ssl tests rely on IOError.errno rather thanf IOError.strerror for better ↵Giampaolo Rodolà2010-08-291-7/+17
| | | | compatibility across platforms.
* Fix issue issue9706: provides a better error handling for various SSL operationsGiampaolo Rodolà2010-08-291-2/+18
|
* Remove debug hackAntoine Pitrou2010-08-161-3/+0
|
* Add debug output to the asyncore testAntoine Pitrou2010-08-151-0/+8
|
* Put test_ciphers in NetworkedTestsAntoine Pitrou2010-08-151-16/+14
|
* Following Ezio's suggestion, force verbose mode on test_ssl to diagnose ↵Antoine Pitrou2010-08-151-0/+3
| | | | freezes on 3.x
* There doesn't seem to be a reason for this test to be disabled.Antoine Pitrou2010-08-141-2/+0
|
* This is a better resolution than r84021 (because it will also affectAntoine Pitrou2010-08-141-12/+6
| | | | ssl.get_server_certificate()).
* Add a reasonable timeout to network SSL tests, so as to avoid buildbot timeoutsAntoine Pitrou2010-08-141-0/+12
| | | | when the remote server doesn't answer.
* Try to fix issue #9415: skip some tests on broken Ubuntu OpenSSLAntoine Pitrou2010-08-041-0/+23
|
* In verbose mode, identify OpenSSL build and platform more preciselyAntoine Pitrou2010-08-041-0/+18
|
* Issue #8969: On Windows, use mbcs codec in strict mode to encode and decodeVictor Stinner2010-06-111-5/+4
| | | | filenames and enable os.fsencode().
* Issue #4870: Add an `options` attribute to SSL contexts, as well asAntoine Pitrou2010-05-211-57/+99
| | | | | several ``OP_*`` constants to the `ssl` module. This allows to selectively disable protocol versions, when used in combination with `PROTOCOL_SSLv23`.
* Typo (thanks Arfrever)Antoine Pitrou2010-05-171-1/+1
|
* Try to fix buildbot failures with old OpenSSLs.Antoine Pitrou2010-05-171-0/+2
|
* "xyzzy" is not a silly enough name for some OpenSSL versions to report an errorAntoine Pitrou2010-05-161-2/+2
|
* Do not fail if ssl fails to importAntoine Pitrou2010-05-161-4/+5
|
* Fix (hopefully) the remaining test_ssl buildbot failuresAntoine Pitrou2010-05-161-2/+2
|
* Followup on r81233: fix test_ssl with OpenSSL < 1.0.0.Antoine Pitrou2010-05-161-0/+4
|
* Issue #8550: Add first class `SSLContext` objects to the ssl module.Antoine Pitrou2010-05-161-29/+174
|
* Merged revisions 80869 via svnmerge fromAntoine Pitrou2010-05-061-3/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80869 | antoine.pitrou | 2010-05-06 16:11:23 +0200 (jeu., 06 mai 2010) | 3 lines `self` doesn't exist here ........
* Merged revisions 80690 via svnmerge fromAntoine Pitrou2010-05-011-21/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80690 | antoine.pitrou | 2010-05-01 22:26:58 +0200 (sam., 01 mai 2010) | 3 lines Remove duplicate test ........
* Fix test failure with -bbAntoine Pitrou2010-04-281-2/+2
|
* Merged revisions 80596 via svnmerge fromAntoine Pitrou2010-04-281-190/+188
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80596 | antoine.pitrou | 2010-04-28 23:11:01 +0200 (mer., 28 avril 2010) | 3 lines Fix style issues in test_ssl ........
* Merged revisions 80557 via svnmerge fromAntoine Pitrou2010-04-271-0/+4
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk (the bug was already fixed in py3k, just merging in the tests) ........ r80557 | antoine.pitrou | 2010-04-28 00:03:37 +0200 (mer., 28 avril 2010) | 4 lines Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline before the certificate footer. Patch by Kyle VanderBeek. ........
* Merged revisions 80534 via svnmerge fromAntoine Pitrou2010-04-271-0/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80534 | antoine.pitrou | 2010-04-27 15:13:26 +0200 (mar., 27 avril 2010) | 3 lines socket.error can really happen here, and fix a possible NameError ........
* Merged revisions 80529 via svnmerge fromAntoine Pitrou2010-04-271-159/+103
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80529 | antoine.pitrou | 2010-04-27 12:32:58 +0200 (mar., 27 avril 2010) | 4 lines Qualify or remove or bare excepts. Simplify exception handling in places. Remove uses of test_support.TestFailed. ........
* Merged revisions 80526 via svnmerge fromAntoine Pitrou2010-04-271-46/+3
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80526 | antoine.pitrou | 2010-04-27 11:51:18 +0200 (mar., 27 avril 2010) | 5 lines replace custom code with standard library functionality (HTTPServer.shutdown()) + enable test that was never run (!) + make tests faster by lowering polling timeout ........