mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
This commit is contained in:
parent
889bb2969d
commit
f2bf8a6ac5
2 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC
|
||||||
|
IV attack countermeasure.
|
||||||
|
|
||||||
- Issue #11603: Fix a crash when __str__ is rebound as __repr__. Patch by
|
- Issue #11603: Fix a crash when __str__ is rebound as __repr__. Patch by
|
||||||
Andreas Stührk.
|
Andreas Stührk.
|
||||||
|
|
||||||
|
|
|
@ -365,7 +365,8 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ssl compatibility */
|
/* ssl compatibility */
|
||||||
SSL_CTX_set_options(self->ctx, SSL_OP_ALL);
|
SSL_CTX_set_options(self->ctx,
|
||||||
|
SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS);
|
||||||
|
|
||||||
verification_mode = SSL_VERIFY_NONE;
|
verification_mode = SSL_VERIFY_NONE;
|
||||||
if (certreq == PY_SSL_CERT_OPTIONAL)
|
if (certreq == PY_SSL_CERT_OPTIONAL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue