[Pkg-privacy-commits] [torbrowser-launcher] 196/476: Removed some variables by accident

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit ed84795b4b8fee26c89d81815094247ddec310a6
Author: Lazlo Westerhof <github at lazlo.me>
Date:   Thu Mar 20 14:30:14 2014 +0100

    Removed some variables by accident
---
 torbrowser-launcher | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index e0b6e16..dbacd9b 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -69,13 +69,13 @@ class VerifyTorProjectCert(ClientContextFactory):
     def __init__(self, torproject_pem):
         self.torproject_ca = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, open(torproject_pem, 'r').read())
 
-    def getContext(self):
+    def getContext(self, host, port):
         ctx = ClientContextFactory.getContext(self)
         ctx.set_verify_depth(0)
         ctx.set_verify(OpenSSL.SSL.VERIFY_PEER | OpenSSL.SSL.VERIFY_FAIL_IF_NO_PEER_CERT, self.verifyHostname)
         return ctx
 
-    def verifyHostname(self, cert):
+    def verifyHostname(self, connection, cert, errno, depth, preverifyOK):
         return cert.digest('sha256') == self.torproject_ca.digest('sha256')
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list