Public bug reported:

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')])


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

** Affects: python-cryptography (Ubuntu)
     Importance: Undecided
     Assignee: Andreas Hasenack (ahasenack)
         Status: In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1956514

Title:
  FTBFS with openssl 3.0.1: buffer too small

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cryptography/+bug/1956514/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to