~alecu/ubuntuone-client/txweb-ssl-3-0

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/action_queue.py

  • Committer: Tarmac
  • Author(s): Alejandro J. Cura
  • Date: 2012-06-12 17:17:47 UTC
  • mfrom: (1190.1.1 validate-ssl-cert-3-0)
  • Revision ID: tarmac-20120612171747-4cz52r52inujfiuf
- Validate SSL certificates (LP: #882062).

Show diffs side-by-side

added added

removed removed

Lines of Context:
855
855
    def _make_connection(self, result):
856
856
        """Do the real connect call."""
857
857
        host, port = result
858
 
        ssl_context = get_ssl_context(self.disable_ssl_verify)
 
858
        ssl_context = get_ssl_context(self.disable_ssl_verify, host)
859
859
        client = yield self.tunnel_runner.get_client()
860
860
        if self.use_ssl:
861
861
            self.connector = client.connectSSL(host, port, factory=self,