From 6a109d91a9256e2d0257d62fb5b555c163642de6 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Jun 01 2023 13:43:31 +0000 Subject: ipalib/x509.py: Add signature_algorithm_parameters Python-cryptography 41.0.0 new abstract method. Signed-off-by: Christian Heimes Signed-off-by: Alexander Bokovoy Reviewed-By: Julien Rische (cherry picked from commit 18bf495ce88fbb032f23f7db7f941458ecf55c7a) --- diff --git a/ipalib/x509.py b/ipalib/x509.py index ed2e8f1..5adb511 100644 --- a/ipalib/x509.py +++ b/ipalib/x509.py @@ -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): """