Unverified Kaydet (Commit) f0422421 authored tarafından Alex Gaynor's avatar Alex Gaynor Kaydeden (comit) GitHub

Remove `ifdef` check for an OpenSSL version (0.9.6) we don't support (GH-6800)

üst 2473eea6
...@@ -919,11 +919,8 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock, ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment