#9160 cryptography.utils.register_interface is scheduled for removal
Closed: fixed 2 years ago by frenaud. Opened 3 years ago by cheimes.

Upstream PyCA cryptography plans to remove the register_interface() API, https://github.com/pyca/cryptography/pull/7234 . FreeIPA currently uses it to register a custom implementation of X509 Certificate class at https://github.com/freeipa/freeipa/blob/release-4-9-9/ipalib/x509.py#L91 .

I don't know what would be the best approach to replace register_interface. Maybe subclass Certificate? Maybe __instancecheck__ / __subclasscheck__?


master:

  • 94835d1 x509: Replace removed register_interface with subclassing

ipa-4-10:

  • a7beaa0 x509: Replace removed register_interface with subclassing

ipa-4-10:

  • a7beaa0 x509: Replace removed register_interface with subclassing

ipa-4-10:

  • a7beaa0 x509: Replace removed register_interface with subclassing

ipa-4-9:

  • 89fe83b x509: Replace removed register_interface with subclassing

Log in to comment on this ticket.

Metadata