ipalib/x509.py: Add signature_algorithm_parameters

Python-cryptography 41.0.0 new abstract method.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Julien Rische <jrische@redhat.com>
This commit is contained in:
Alexander Bokovoy 2023-05-31 11:00:33 +03:00 committed by Florence Blanc-Renaud
parent 9cdf010ca6
commit 18bf495ce8

View File

@ -239,6 +239,12 @@ class IPACertificate(crypto_x509.Certificate):
"""
return self._cert.signature_algorithm_oid
if hasattr(crypto_x509.Certificate, "signature_algorithm_parameters"):
# added in python-cryptography 41.0
@property
def signature_algorithm_parameters(self):
return self._cert.signature_algorithm_parameters
@property
def signature(self):
"""