trailofbits / tlslib.py

MVP for updated PEP 543 proposal
https://trailofbits.github.io/tlslib.py/
Apache License 2.0
9 stars 0 forks source link

Add insecure option to disable verification #43

Closed jvdprng closed 6 months ago

jvdprng commented 6 months ago

This is a proposal for adding insecure options to the API. It lives in a separate module and subclasses *Context types, with an additional InsecureConfiguration that defines insecure options (currently only disabling verification). In the shim it just directly acts on the context to disable verification, although perhaps the insecure stuff should be in a different file as well?