From 6f0c5c17f76031955f20505e056072e3331e071f Mon Sep 17 00:00:00 2001 From: julianz- Date: Fri, 18 Aug 2023 15:25:01 -0700 Subject: [PATCH] restoring SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER constant (#9461) This constant was removed in https://github.com/pyca/cryptography/commit/895de04c7318edf0ecb5d55c4758598ff6d79724 but it is still needed to deal with an issue in PyOpenSSL described here https://github.com/cherrypy/cheroot/issues/245 and PR https://github.com/pyca/pyopenssl/pull/1242. --- src/_cffi_src/openssl/ssl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py index 73221219b83e..7e7b2b8bd91b 100644 --- a/src/_cffi_src/openssl/ssl.py +++ b/src/_cffi_src/openssl/ssl.py @@ -108,6 +108,7 @@ static const long SSL_CB_HANDSHAKE_DONE; static const long SSL_MODE_RELEASE_BUFFERS; static const long SSL_MODE_ENABLE_PARTIAL_WRITE; +static const long SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER; static const long SSL_MODE_AUTO_RETRY; static const long TLS_ST_BEFORE; static const long TLS_ST_OK;