mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
Remove ifdef
check for an OpenSSL version (0.9.6) we don't support (GH-6807)
(cherry picked from commit f04224210d
)
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
This commit is contained in:
parent
ceb45f0df8
commit
67d1968a41
1 changed files with 2 additions and 5 deletions
|
@ -919,11 +919,8 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
|
||||||
BIO_up_ref(outbio->bio);
|
BIO_up_ref(outbio->bio);
|
||||||
SSL_set_bio(self->ssl, inbio->bio, outbio->bio);
|
SSL_set_bio(self->ssl, inbio->bio, outbio->bio);
|
||||||
}
|
}
|
||||||
mode = SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER;
|
SSL_set_mode(self->ssl,
|
||||||
#ifdef SSL_MODE_AUTO_RETRY
|
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_AUTO_RETRY);
|
||||||
mode |= SSL_MODE_AUTO_RETRY;
|
|
||||||
#endif
|
|
||||||
SSL_set_mode(self->ssl, mode);
|
|
||||||
|
|
||||||
if (server_hostname != NULL) {
|
if (server_hostname != NULL) {
|
||||||
if (_ssl_configure_hostname(self, server_hostname) < 0) {
|
if (_ssl_configure_hostname(self, server_hostname) < 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue