From 18bf495ce88fbb032f23f7db7f941458ecf55c7a Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 31 May 2023 11:00:33 +0300 Subject: [PATCH] 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 --- ipalib/x509.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ipalib/x509.py b/ipalib/x509.py index ed2e8f1d8..5adb511d8 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): """