| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
before the certificate footer. Patch by Kyle VanderBeek.
|
| |
|
|
|
|
| |
Remove uses of test_support.TestFailed.
|
|
|
|
|
| |
+ enable test that was never run (!)
+ make tests faster by lowering polling timeout
|
| |
|
|
|
|
| |
indefinitely if the other end didn't respond.
|
|
|
|
|
| |
socket under OS X), and skip it under Windows (where sockets can't be read()
from using their fds).
|
|
|
|
| |
underlying socket from being closed until all objects get truely destroyed.
|
|
|
|
| |
socket. Initial patch by Péter Szabó.
|
| |
|
|
|
|
| |
failure on Neal's buildbot.
|
|
|
|
|
| |
the _ssl extension, such that verification of some SSL certificates
doesn't fail because of an "unknown algorithm".
|
|
|
|
| |
available cipher list. Helps fix test_ssl with OpenSSL 1.0.0.
|
|
|
|
|
| |
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
|
|
|
|
| |
test_support.check_py3k_warnings() helper.
|
| |
|
|
|
|
| |
that you can fail while you fail.
|
|
|
|
| |
mistake. ( It may come in for sure tough)
|
|
|
|
| |
Patch by flox
|
|
|
|
| |
This fixes the test_ssl failure.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to listen on in network-oriented tests has been refined in an effort to
facilitate running multiple instances of the entire regression test suite
in parallel without issue. test_support.bind_port() has been fixed such
that it will always return a unique port -- which wasn't always the case
with the previous implementation, especially if socket options had been
set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT). The
new implementation of bind_port() will actually raise an exception if it
is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
SO_REUSEPORT socket option set. Furthermore, if available, bind_port()
will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
This currently only applies to Windows. This option prevents any other
sockets from binding to the host/port we've bound to, thus removing the
possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
that occurs when a second SOCK_STREAM socket binds and accepts to a
host/port that's already been bound by another socket. The optional
preferred port parameter to bind_port() has been removed. Under no
circumstances should tests be hard coding ports!
test_support.find_unused_port() has also been introduced, which will pass
a temporary socket object to bind_port() in order to obtain an unused port.
The temporary socket object is then closed and deleted, and the port is
returned. This method should only be used for obtaining an unused port
in order to pass to an external program (i.e. the -accept [port] argument
to openssl's s_server mode) or as a parameter to a server-oriented class
that doesn't give you direct access to the underlying socket used.
Finally, test_support.HOST has been introduced, which should be used for
the host argument of any relevant socket calls (i.e. bind and connect).
The following tests were updated to following the new conventions:
test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
test_poplib, test_ftplib, test_telnetlib, test_socketserver,
test_asynchat and test_socket_ssl.
It is now possible for multiple instances of the regression test suite to
run in parallel without issue.
|
|
|
|
| |
on various platforms, most recently the Alpha Tru64.
|
|
|
|
| |
Thanks to Wummel for the patch
|
|
|
|
|
| |
Some buildbots were consistently failing (e.g., amd64).
Also remove a couple of semi-colons.
|
|
|
|
| |
I also disabled a test in test_ssl which requires network access to svn.python.org. This fixes a bug Skip has reported a while ago.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
adding the 'makefile' method to ssl.SSLSocket, and importing the
requisite fakefile class from socket.py, and making the appropriate
changes to it to make it use the SSL connection.
Added sample HTTPS server to test_ssl.py, and test that uses it.
Change SSL tests to use https://svn.python.org/, instead of
www.sf.net and pop.gmail.com.
Added utility function to ssl module, get_server_certificate,
to wrap up the several things to be done to pull a certificate
from a remote server.
|
|
|
|
| |
context where it can't be imported.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
|
| |
|
|
|
|
|
|
|
|
|
| |
> the better option. Then the openssl command in the test code can be turned
> into a comment describing how the test data was pregenerated.
Here's a patch that does that.
Bill
|
|
|
|
| |
Modified patch from what Bill Janssen sent on python-3000.
|
| |
|
| |
|
|
|
|
|
|
| |
1) Fixes the bug that two class names are initial-lower-case.
2) Replaces the poll waiting for the server to become ready with
a threading.Event signal.
|
| |
|
|
|
|
|
| |
Here's a patch which makes test_ssl a better player in the buildbots
environment. I deep-ended on "try-except-else" clauses.
|
| |
|