Package: python-cryptography
Version: 3.4.8-1
Severity: normal

Dear maintainer,

openssl 3.0.1 fixed a bug[1] which tripped[2] the tests of
python-cryptography and made the package fail to build[3]:

lib = <module 'lib'>, ok = False
errors = [<cryptography.hazmat.bindings.openssl.binding._OpenSSLError
object at 0x7f5845ec02e0>]

    def _openssl_assert(lib, ok, errors=None):
        if not ok:
            if errors is None:
                errors = _consume_errors(lib)
            errors_with_text = _errors_with_text(errors)

> raise InternalError(
                "Unknown OpenSSL error. This error is commonly
encountered when "
                "another library is not cleaning up the OpenSSL error
stack. If "
                "you are using cryptography with another library that uses "
                "OpenSSL try disabling it before reporting a bug. Otherwise "
                "please file an issue at https://github.com/pyca/cryptography/";
                "issues with information on how to reproduce "
                "this. ({0!r})".format(errors_with_text),
                errors_with_text,
            )
E cryptography.exceptions.InternalError: Unknown OpenSSL error. This
error is commonly encountered when another library is not cleaning up
the OpenSSL error stack. If you are using cryptography with another
library that uses OpenSSL try disabling it before reporting a bug.
Otherwise please file an issue at
https://github.com/pyca/cryptography/issues with information on how to
reproduce this. ([_OpenSSLErrorWithText(code=50331803, lib=6,
reason=155, reason_text=b'error:0300009B:digital envelope
routines::buffer too small')])

There is this PR[4] with a proposed fix.

Thanks!

1. https://github.com/openssl/openssl/pull/16789
2. https://github.com/pyca/cryptography/pull/6403
3. 
https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/p/python-cryptography/20220101_131859_053a9@/log.gz
4. 
https://salsa.debian.org/python-team/packages/python-cryptography/-/merge_requests/9

Reply via email to