mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 09:01:22 +00:00
python3: Update to 3.8.3, refresh patches
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -11,9 +11,6 @@ SSL_CTX_set_min/max_proto_version().
|
||||
2 files changed, 108 insertions(+), 30 deletions(-)
|
||||
create mode 100644 Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst
|
||||
|
||||
diff --git a/Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst b/Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst
|
||||
new file mode 100644
|
||||
index 000000000000..e0a08464a1e1
|
||||
--- /dev/null
|
||||
+++ b/Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst
|
||||
@@ -0,0 +1,4 @@
|
||||
@@ -21,11 +18,9 @@ index 000000000000..e0a08464a1e1
|
||||
+1.1.0. The version specific TLS methods are emulated with TLS_method() plus
|
||||
+SSL_CTX_set_min/max_proto_version(). Pseudo random numbers are generated
|
||||
+with RAND_bytes().
|
||||
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
|
||||
index f50823e6947a..827026e3bf5c 100644
|
||||
--- a/Modules/_ssl.c
|
||||
+++ b/Modules/_ssl.c
|
||||
@@ -45,14 +45,6 @@ static PySocketModule_APIObject PySocketModule;
|
||||
@@ -45,14 +45,6 @@ static PySocketModule_APIObject PySocket
|
||||
#include <sys/poll.h>
|
||||
#endif
|
||||
|
||||
@@ -48,7 +43,7 @@ index f50823e6947a..827026e3bf5c 100644
|
||||
#define TLS_method SSLv23_method
|
||||
#define TLS_client_method SSLv23_client_method
|
||||
#define TLS_server_method SSLv23_server_method
|
||||
@@ -896,7 +889,7 @@ _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname)
|
||||
@@ -896,7 +889,7 @@ _ssl_configure_hostname(PySSLSocket *sel
|
||||
goto error;
|
||||
}
|
||||
} else {
|
||||
@@ -57,7 +52,7 @@ index f50823e6947a..827026e3bf5c 100644
|
||||
ASN1_STRING_length(ip))) {
|
||||
_setSSLError(NULL, 0, __FILE__, __LINE__);
|
||||
goto error;
|
||||
@@ -1372,8 +1365,9 @@ _get_peer_alt_names (X509 *certificate) {
|
||||
@@ -1372,8 +1365,9 @@ _get_peer_alt_names (X509 *certificate)
|
||||
goto fail;
|
||||
}
|
||||
PyTuple_SET_ITEM(t, 0, v);
|
||||
@@ -69,7 +64,7 @@ index f50823e6947a..827026e3bf5c 100644
|
||||
if (v == NULL) {
|
||||
Py_DECREF(t);
|
||||
goto fail;
|
||||
@@ -3031,44 +3025,124 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
|
||||
@@ -3078,44 +3072,124 @@ _ssl__SSLContext_impl(PyTypeObject *type
|
||||
long options;
|
||||
SSL_CTX *ctx = NULL;
|
||||
X509_VERIFY_PARAM *params;
|
||||
@@ -212,7 +207,7 @@ index f50823e6947a..827026e3bf5c 100644
|
||||
_setSSLError(NULL, 0, __FILE__, __LINE__);
|
||||
return NULL;
|
||||
}
|
||||
@@ -5241,7 +5315,7 @@ PySSL_RAND(int len, int pseudo)
|
||||
@@ -5288,7 +5362,7 @@ PySSL_RAND(int len, int pseudo)
|
||||
if (bytes == NULL)
|
||||
return NULL;
|
||||
if (pseudo) {
|
||||
|
||||
Reference in New Issue
Block a user