mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipalib/x509: Implement abstract method Certificate.verify_directly_issued_by
Added in Python Cryptography 40.0 Thanks to @tiran for the code Fixes: https://pagure.io/freeipa/issue/9355 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
parent
d32c640df0
commit
3721bca657
@ -405,6 +405,11 @@ class IPACertificate(crypto_x509.Certificate):
|
|||||||
def tbs_precertificate_bytes(self):
|
def tbs_precertificate_bytes(self):
|
||||||
return self._cert.tbs_precertificate_bytes
|
return self._cert.tbs_precertificate_bytes
|
||||||
|
|
||||||
|
if hasattr(crypto_x509.Certificate, "verify_directly_issued_by"):
|
||||||
|
# added in python-cryptography 40.0
|
||||||
|
def verify_directly_issued_by(self, issuer):
|
||||||
|
return self._cert.verify_directly_issued_by(issuer)
|
||||||
|
|
||||||
|
|
||||||
def load_pem_x509_certificate(data):
|
def load_pem_x509_certificate(data):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user