Skip to content

Commit

Permalink
Remove ifdef check for an OpenSSL version (0.9.6) we don't support (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored May 14, 2018
1 parent 2473eea commit f042242
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f042242

Please sign in to comment.