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

This commit is contained in:
Alex Gaynor 2018-05-14 11:51:45 -04:00 committed by GitHub
parent 2473eea65d
commit f04224210d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -919,11 +919,8 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
BIO_up_ref(outbio->bio);
SSL_set_bio(self->ssl, inbio->bio, outbio->bio);
}
mode = SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER;
#ifdef SSL_MODE_AUTO_RETRY
mode |= SSL_MODE_AUTO_RETRY;
#endif
SSL_set_mode(self->ssl, mode);
SSL_set_mode(self->ssl,
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_AUTO_RETRY);
if (server_hostname != NULL) {
if (_ssl_configure_hostname(self, server_hostname) < 0) {