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> |
||
---|---|---|
.. | ||
ssl_cert_rsa.py | ||
ssl_cert_rsa.py.exp | ||
ssl_data.py | ||
ssl_data.py.exp | ||
tcp_accept_recv.py | ||
tcp_client_rst.py | ||
tcp_data.py | ||
uasyncio_tcp_client_rst.py | ||
uasyncio_tcp_client_rst.py.exp | ||
uasyncio_tcp_close_write.py | ||
uasyncio_tcp_close_write.py.exp | ||
uasyncio_tcp_readall.py | ||
uasyncio_tcp_readall.py.exp | ||
uasyncio_tcp_readexactly.py | ||
uasyncio_tcp_readexactly.py.exp | ||
uasyncio_tcp_readinto.py | ||
uasyncio_tcp_readinto.py.exp | ||
uasyncio_tcp_server_client.py | ||
uasyncio_tcp_server_client.py.exp | ||
udp_data.py |