2023-06-25 01:28:09 -04:00
|
|
|
# Test ssl.wrap_socket() with cadata passed in.
|
|
|
|
|
|
|
|
try:
|
|
|
|
import io
|
|
|
|
import ssl
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
|
|
|
|
|
|
|
# Invalid cadata.
|
|
|
|
try:
|
|
|
|
ssl.wrap_socket(io.BytesIO(), cadata=b"!")
|
2023-09-26 23:37:31 -04:00
|
|
|
except TypeError:
|
|
|
|
# "cadata" keyword argument is not supported by axtls.
|
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2023-06-25 01:28:09 -04:00
|
|
|
except ValueError as er:
|
|
|
|
print(repr(er))
|