summaryrefslogtreecommitdiff
path: root/lang/python/python3/patches/021-openssl-deprecated.patch
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-05-20 11:12:55 -0700
committerGitHub <noreply@github.com>2020-05-20 11:12:55 -0700
commit1fc71ed9941db11318860b6968fbc25423267f1d (patch)
tree5888505651ffc9eed9719f7561d76b02bcb13e17 /lang/python/python3/patches/021-openssl-deprecated.patch
parent061e22606ced7724c15a778a1fb31b0b340aed92 (diff)
parent0254a4bea90442bd8504fe85dd9f5c5502f67c4a (diff)
Merge pull request #12234 from jefferyto/python3-3.8.3
python3: Update to 3.8.3, refresh patches
Diffstat (limited to 'lang/python/python3/patches/021-openssl-deprecated.patch')
-rw-r--r--lang/python/python3/patches/021-openssl-deprecated.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/lang/python/python3/patches/021-openssl-deprecated.patch b/lang/python/python3/patches/021-openssl-deprecated.patch
index f73ce80c3..4dd33f623 100644
--- a/lang/python/python3/patches/021-openssl-deprecated.patch
+++ b/lang/python/python3/patches/021-openssl-deprecated.patch
@@ -1,6 +1,6 @@
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
-@@ -201,6 +202,11 @@ static void _PySSLFixErrno(void) {
+@@ -201,6 +201,11 @@ static void _PySSLFixErrno(void) {
#define TLS_method SSLv23_method
#define TLS_client_method SSLv23_client_method
#define TLS_server_method SSLv23_server_method
@@ -12,7 +12,7 @@
static int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne)
{
-@@ -1677,7 +1683,7 @@ _decode_certificate(X509 *certificate) {
+@@ -1724,7 +1729,7 @@ _decode_certificate(X509 *certificate) {
Py_DECREF(sn_obj);
(void) BIO_reset(biobuf);
@@ -21,7 +21,7 @@
ASN1_TIME_print(biobuf, notBefore);
len = BIO_gets(biobuf, buf, sizeof(buf)-1);
if (len < 0) {
-@@ -1694,7 +1700,7 @@ _decode_certificate(X509 *certificate) {
+@@ -1741,7 +1746,7 @@ _decode_certificate(X509 *certificate) {
Py_DECREF(pnotBefore);
(void) BIO_reset(biobuf);
@@ -30,7 +30,7 @@
ASN1_TIME_print(biobuf, notAfter);
len = BIO_gets(biobuf, buf, sizeof(buf)-1);
if (len < 0) {
-@@ -3235,7 +3241,7 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
+@@ -3282,7 +3287,7 @@ _ssl__SSLContext_impl(PyTypeObject *type
conservative and assume it wasn't fixed until release. We do this check
at runtime to avoid problems from the dynamic linker.
See #25672 for more on this. */
@@ -39,7 +39,7 @@
if (!(libver >= 0x10001000UL && libver < 0x1000108fUL) &&
!(libver >= 0x10000000UL && libver < 0x100000dfUL)) {
SSL_CTX_set_mode(self->ctx, SSL_MODE_RELEASE_BUFFERS);
-@@ -6403,10 +6409,10 @@ PyInit__ssl(void)
+@@ -6450,10 +6455,10 @@ PyInit__ssl(void)
return NULL;
/* OpenSSL version */
@@ -52,7 +52,7 @@
r = PyLong_FromUnsignedLong(libver);
if (r == NULL)
return NULL;
-@@ -6416,7 +6422,7 @@ PyInit__ssl(void)
+@@ -6463,7 +6468,7 @@ PyInit__ssl(void)
r = Py_BuildValue("IIIII", major, minor, fix, patch, status);
if (r == NULL || PyModule_AddObject(m, "OPENSSL_VERSION_INFO", r))
return NULL;