Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Apr 2024 08:51:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 278272] Latest security/py-cryptography breaks crypto.X509.get_signature_algorithm() in py-openssl
Message-ID:  <bug-278272-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278272

            Bug ID: 278272
           Summary: Latest security/py-cryptography breaks
                    crypto.X509.get_signature_algorithm() in py-openssl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: sunpoet@FreeBSD.org
          Reporter: vladimir-csp@yandex.ru
          Assignee: sunpoet@FreeBSD.org
             Flags: maintainer-feedback?(sunpoet@FreeBSD.org)

Hi.
Version 42.0.5 breaks crypto.X509.get_signature_algorithm().
Version 41.0.7 works fine.

FreeBSD 13.2, python 3.11

Script to reproduce:

#!/usr/bin/env python
from OpenSSL import crypto
with open('any.rsa.cert.pem', 'r') as f:
  pem_entity =3D f.read()
cert =3D crypto.load_certificate(crypto.FILETYPE_PEM, pem_entity)
cert.get_signature_algorithm()

Result:

Traceback (most recent call last):
  File "/tmp/cert-test.py", line 8, in <module>
    cert.get_signature_algorithm()
  File "/usr/local/lib/python3.11/site-packages/OpenSSL/crypto.py", line 12=
99,
in get_signature_algorithm
    nid =3D _lib.OBJ_obj2nid(algor.algorithm)
                           ^^^^^^^^^^^^^^^
AttributeError: cdata 'X509_ALGOR *' points to an opaque type: cannot read
fields

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278272-7788>