mirror of https://github.com/python/cpython
[Patch #909007] Enable a bunch of safe bug workarounds in OpenSSL, for compatibility with various broken SSL implementations out there.
This commit is contained in:
parent
79d7e92a5c
commit
27d3dda7f1
|
@ -220,6 +220,7 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file)
|
|||
ret = SSL_CTX_use_certificate_chain_file(self->ctx,
|
||||
cert_file);
|
||||
Py_END_ALLOW_THREADS
|
||||
SSL_CTX_set_options(self->ctx, SSL_OP_ALL); /* ssl compatibility */
|
||||
if (ret < 1) {
|
||||
errstr = "SSL_CTX_use_certificate_chain_file error";
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in New Issue