Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27d3dda

Browse files
committed
[Patch #909007] Enable a bunch of safe bug workarounds in OpenSSL, for compatibility with various broken SSL implementations out there.
1 parent 79d7e92 commit 27d3dda

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/_ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file)
220220
ret = SSL_CTX_use_certificate_chain_file(self->ctx,
221221
cert_file);
222222
Py_END_ALLOW_THREADS
223+
SSL_CTX_set_options(self->ctx, SSL_OP_ALL); /* ssl compatibility */
223224
if (ret < 1) {
224225
errstr = "SSL_CTX_use_certificate_chain_file error";
225226
goto fail;

0 commit comments

Comments
 (0)