From 4281e5ca3b692f70813e750b792da0a159cd27f0 Mon Sep 17 00:00:00 2001 From: julianz- Date: Fri, 18 Aug 2023 15:15:10 -0700 Subject: [PATCH] restoring SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER constant 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;