hifi / heisenbridge

a bouncer-style Matrix IRC bridge
MIT License
244 stars 34 forks source link

Support specifying TLS cipher list per server #260

Closed tohojo closed 1 year ago

tohojo commented 1 year ago

Some servers with weird TLS configurations don't accept any of the ciphers in the default Python ssl module cipher list. To connect to such a server, it is necessary to specify a custom cipher list, so add an option to the ADDSERVER command to specify a per-server custom cipher list and pass it into the SSL context object if set.

hifi commented 1 year ago

LGTM! I'll give it a spin and merge.