Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TLS in TLS for HTTPS proxies. #1806

Merged
merged 1 commit into from Aug 19, 2020

Commits on Aug 19, 2020

  1. Add SSLTransport to support TLS in TLS connections.

    TLS within TLS is not supported easily within the ssl library. The
    SSLSocket actually takes over the existing socket
    (https://github.com/python/cpython/blob/master/Lib/ssl.py#L999-L1006)
    instead of wrapping it entirely. The only way to support to TLS within
    TLS is with the wrap_bio methods.
    
    This commit introduces SSLTransport which wraps a socket in TLS using
    the provided SSL context. Rather than taking over the socket it uses the
    wrap_bio methods to perform TLS on top of that socket.
    
    Signed-off-by: Jorge Lopez Silva <jalopezsilva@gmail.com>
    jalopezsilva committed Aug 19, 2020
    Copy the full SHA
    39ba5ec View commit details
    Browse the repository at this point in the history