[issue29394] Cannot tunnel TLS connection through TLS connection

2020-10-04 Thread Carl Bordum Hansen
Change by Carl Bordum Hansen : -- keywords: +patch nosy: +carlbordum nosy_count: 4.0 -> 5.0 pull_requests: +21542 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22539 ___ Python tracker

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-09-06 Thread Christian Heimes
Christian Heimes added the comment: A documentation update wouldn't hurt, though. -- assignee: christian.heimes -> docs@python components: +Documentation -SSL nosy: +docs@python versions: -Python 3.5 ___ Python tracker

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-02-20 Thread Martin Panter
Changes by Martin Panter : -- stage: -> needs patch versions: +Python 2.7, Python 3.5, Python 3.7 ___ Python tracker ___

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-02-04 Thread Maximilian Blochberger
Maximilian Blochberger added the comment: Yes. There should be at least an explanation of this behaviour in the documentation of the wrap_socket() function. I would additionally raise an exception if wrap_socket() is called and a socket is passed that is already wrapped. But I'm not sure if

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Maximilian, I could not tell if you are still requesting that something be changed, or if this should be closed. -- nosy: +terry.reedy ___ Python tracker

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-02-02 Thread Maximilian Blochberger
Maximilian Blochberger added the comment: Okay, I see, thanks for the hint. That worked perfectly – I found `asyncio.sslproto._SSLPipe` very useful for that purpose. I personally consider the behaviour of `ssl.SSLContext.wrap_socket()` unexpected and would raise an exception if that method

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-01-31 Thread Christian Heimes
Christian Heimes added the comment: You cannot use wrap_socket() to wrap a SSLSocket into another SSLSocket. Python uses SSL_set_fd() to wrap the socket's file descriptor. OpenSSL directly pulls and pushes data to the connection. Instead you have to use wrap_bio() and do I/O on your own.

[issue29394] Cannot tunnel TLS connection through TLS connection

2017-01-30 Thread Maximilian Blochberger
New submission from Maximilian Blochberger: I have the following scenario: Client → Proxy → Target. The following two scenarios are working perfectly fine: 1) Establishing a TLS-secured connection to the proxy and then tunnel traffic through that connection to the target. This results in the