Skip to content

Commit f042242

Browse files
authored
Remove ifdef check for an OpenSSL version (0.9.6) we don't support (GH-6800)
1 parent 2473eea commit f042242

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Modules/_ssl.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -919,11 +919,8 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
919919
BIO_up_ref(outbio->bio);
920920
SSL_set_bio(self->ssl, inbio->bio, outbio->bio);
921921
}
922-
mode = SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER;
923-
#ifdef SSL_MODE_AUTO_RETRY
924-
mode |= SSL_MODE_AUTO_RETRY;
925-
#endif
926-
SSL_set_mode(self->ssl, mode);
922+
SSL_set_mode(self->ssl,
923+
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER | SSL_MODE_AUTO_RETRY);
927924

928925
if (server_hostname != NULL) {
929926
if (_ssl_configure_hostname(self, server_hostname) < 0) {

0 commit comments

Comments
 (0)