Ticket #5514: no-3des.patch

File no-3des.patch, 669 bytes (added by Jean-Paul Calderone, 7 years ago)

a patch which turns off 3DES ciphers in twisted.protocols.tls

  • twisted/protocols/tls.py

     
    294294        """
    295295        tlsContext = self.factory._contextFactory.getContext()
    296296        self._tlsConnection = Connection(tlsContext, None)
     297        tlsContext.set_cipher_list(':'.join([
     298                    cipher
     299                    for cipher
     300                    in self._tlsConnection.get_cipher_list()
     301                    if '3DES' not in cipher]))
    297302        if self.factory._isClient:
    298303            self._tlsConnection.set_connect_state()
    299304        else: