We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdffb9f commit 1036c4bCopy full SHA for 1036c4b
Modules/_ssl.c
@@ -148,16 +148,10 @@ struct py_ssl_library_code {
148
* reasons. The check for TLSEXT_TYPE_next_proto_neg works with
149
* OpenSSL 1.0.1+ and LibreSSL.
150
* OpenSSL 1.1.1-pre1 dropped NPN but still has TLSEXT_TYPE_next_proto_neg.
151
+ *
152
+ * Fix for CVE-2024-5642: we just switch NPN completely
153
*/
-#ifdef OPENSSL_NO_NEXTPROTONEG
154
# define HAVE_NPN 0
-#elif (OPENSSL_VERSION_NUMBER >= 0x10101000L) && !defined(LIBRESSL_VERSION_NUMBER)
155
-# define HAVE_NPN 0
156
-#elif defined(TLSEXT_TYPE_next_proto_neg)
157
-# define HAVE_NPN 1
158
-#else
159
160
-#endif
161
162
#ifndef INVALID_SOCKET /* MS defines this */
163
#define INVALID_SOCKET (-1)
0 commit comments