Ticket #3463: twisted-ssl-handshake.patch

File twisted-ssl-handshake.patch, 748 bytes (added by sjoerd, 6 years ago)
  • twisted/words/protocols/jabber/xmlstream.py

     
    388388        """ 
    389389 
    390390        self.xmlstream.removeObserver('/failure', self.onFailure) 
    391         ctx = ssl.CertificateOptions() 
     391        # Use a SSLv2 handshake which indicates that SSLv3 and TLSv1 are also 
     392        # support. Doing the default TLSv1 handshake doesn't work with gtalk 
     393        # :( 
     394        ctx = ssl.CertificateOptions(method = ssl.SSL.SSLv23_METHOD) 
    392395        self.xmlstream.transport.startTLS(ctx) 
    393396        self.xmlstream.reset() 
    394397        self.xmlstream.sendHeader()