switch default py3 version to 3.11 and rm old py3.x versions

This commit is contained in:
purplerain 2024-05-10 01:49:14 +00:00
parent 7f1bb8f14c
commit 9888392b04
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
63 changed files with 720 additions and 19538 deletions

View file

@ -0,0 +1,12 @@
Index: Modules/_ssl.c
--- Modules/_ssl.c.orig
+++ Modules/_ssl.c
@@ -4541,7 +4541,7 @@ set_sni_callback(PySSLContext *self, PyObject *arg, vo
return 0;
}
-#if OPENSSL_VERSION_NUMBER < 0x30300000L
+#if OPENSSL_VERSION_NUMBER < 0x30300000L && !defined(LIBRESSL_VERSION_NUMBER)
static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj)
{
int ok;