Commits

Anonymous committed 9a4131a

Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.

  • Participants
  • Parent commits 62fa61f
  • Branches 2.6

Comments (0)

Files changed (2)

 Library
 -------
 
+- Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC
+  IV attack countermeasure.
+
 
 What's New in Python 2.6.7?
 ===========================

File Modules/_ssl.c

     }
 
     /* 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;
     if (certreq == PY_SSL_CERT_OPTIONAL)