1. Armin Rigo
  2. cpython-withatomic

Commits

Antoine Pitrou  committed a1628bd

SSL_MODE_AUTO_RETRY has been added in OpenSSL 0.9.6. Fix compilation
with earlier versions.

  • Participants
  • Parent commits 24ce4a0
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Modules/_ssl.c

View file
  • Ignore whitespace
 	self->ssl = SSL_new(self->ctx); /* New ssl struct */
 	PySSL_END_ALLOW_THREADS
 	SSL_set_fd(self->ssl, Sock->sock_fd);	/* Set the socket for SSL */
+#ifdef SSL_MODE_AUTO_RETRY
 	SSL_set_mode(self->ssl, SSL_MODE_AUTO_RETRY);
+#endif
 
 	/* If the socket is in non-blocking mode or timeout mode, set the BIO
 	 * to non-blocking mode (blocking is the default)