Opened 3 years ago

Last modified 6 weeks ago

#6923 enhancement new

Deprecate outdated SSL context factories

Reported by: hynek Owned by: Lukasa
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description

Currently all TLS work happens within twisted.internet.ssl.CertificateOptions.

Unfortunately, if one comes to the module API docs of twisted.internet.ssl, one sees lot of “ContextFactories” which one shouldn’t use and the good one is hidden at the and with a rather unobvious name.

I’d like to deprecate at least:

  • ContextFactory
  • DefaultOpenSSLContextFactory
  • ClientContextFactory

If there’s more somewhere, please let me know.

Thoughts and opinions?

Change History (3)

comment:1 Changed 3 years ago by exarkun

I think this is a very good idea.

There is another context factory in twisted.mail.protocols but fortunately it is already deprecated.

Before deprecating these other context factories, we should switch all uses (and particularly documentation) of them inside Twisted to CertificateOptions.

comment:2 Changed 6 weeks ago by Lukasa

  • Owner set to Lukasa

comment:3 Changed 6 weeks ago by adiroiban

Ticket for removing twisted.mail in #8591

Note: See TracTickets for help on using tickets.