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

stdlib: Remove unreachable code #24

Closed facutuesca closed 7 months ago

facutuesca commented 7 months ago

I think that by the time you have an existing connection, whatever the cipher is that was negotiated, that cipher must be present in the list of supported ciphers of the corresponding OpenSSL context. This encodes that in an assert, rather than having an else condition that will never be reached.