diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-lang/python/files/python-3.14.0-libressl.patch | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-lang/python/files/python-3.14.0-libressl.patch')
| -rw-r--r-- | dev-lang/python/files/python-3.14.0-libressl.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-lang/python/files/python-3.14.0-libressl.patch b/dev-lang/python/files/python-3.14.0-libressl.patch new file mode 100644 index 000000000000..d8c4f8b0e5f4 --- /dev/null +++ b/dev-lang/python/files/python-3.14.0-libressl.patch @@ -0,0 +1,51 @@ +--- a/Modules/_hashopenssl.c ++++ b/Modules/_hashopenssl.c +@@ -44,7 +44,9 @@ + + #define MUNCH_SIZE INT_MAX + ++#ifdef NID_id_scrypt + #define PY_OPENSSL_HAS_SCRYPT 1 ++#endif + #if defined(NID_sha3_224) && defined(NID_sha3_256) && defined(NID_sha3_384) && defined(NID_sha3_512) + #define PY_OPENSSL_HAS_SHA3 1 + #endif +@@ -963,11 +965,15 @@ _hashlib_HASH(PyObject *module, const char *digestname, PyObject *data_obj, + goto exit; + } + ++#ifndef EVP_MD_FLAG_XOF ++ type = get_hashlib_state(module)->EVPtype; ++#else + if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { + type = get_hashlib_state(module)->EVPXOFtype; + } else { + type = get_hashlib_state(module)->EVPtype; + } ++#endif + + self = newEVPobject(type); + if (self == NULL) { +--- a/Modules/_ssl.c ++++ b/Modules/_ssl.c +@@ -907,7 +907,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock, + } + + /* bpo43522 and OpenSSL < 1.1.1l: copy hostflags manually */ +-#if OPENSSL_VERSION < 0x101010cf ++#if OPENSSL_VERSION_NUMBER < 0x101010cf + X509_VERIFY_PARAM *ssl_verification_params = SSL_get0_param(self->ssl); + X509_VERIFY_PARAM *ssl_ctx_verification_params = SSL_CTX_get0_param(ctx); + +@@ -3859,7 +3859,11 @@ _ssl__SSLContext__host_flags_get_impl(PySSLContext *self) + unsigned int host_flags; + + ssl_verification_params = SSL_CTX_get0_param(self->ctx); ++#ifdef LIBRESSL_VERSION_NUMBER ++ host_flags = 0; ++#else + host_flags = X509_VERIFY_PARAM_get_hostflags(ssl_verification_params); ++#endif + return PyLong_FromUnsignedLong(host_flags); + } + |
