b41cfea02a
Add cert_reqs and cadata keyword-args to ssl.wrap_socket() and ssl.CERT_NONE, ssl.CERT_OPTIONAL, ssl.CERT_REQUIRED constants to allow certificate validation. CPython doesn't accept cadata in ssl.wrap_socket(), but it does in SSLContext.load_verify_locations(), so we use this name to at least match the same name in load_verify_locations(). Add docs for these new arguments, as well as docs for the existing server_hostname argument which is important for certificate validation. Tests are added as well. Signed-off-by: Carlos Gil <carlosgilglez@gmail.com> |
||
---|---|---|
.. | ||
README | ||
getaddrinfo.py | ||
ssl_cert.py | ||
ssl_cert.py.exp | ||
ssl_errors.py | ||
test_tls_nonblock.py | ||
test_tls_sites.py | ||
test_tls_sites.py.exp | ||
tls_num_errors.py | ||
tls_num_errors.py.exp | ||
tls_text_errors.py | ||
uasyncio_cancel_stream.py | ||
uasyncio_cancel_stream.py.exp | ||
uasyncio_open_connection.py | ||
uasyncio_open_connection.py.exp | ||
uasyncio_tcp_read_headers.py | ||
uasyncio_tcp_read_headers.py.exp |
README
This directory contains network tests which require Internet connection. Note that these tests are not run as part of the main testsuite and need to be run seperately (from the main test/ directory): ./run-tests.py net_inet/*.py