aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-06-14 15:29:54 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-06-14 15:29:54 +1200
commit8dabf88ae53cd8c2a3246a880008305bd7bd292c (patch)
treea8a6b8ab0f96738e3da67f256ce42bf1b67350e7 /libmproxy/proxy.py
parent8a9352b3f7e49f169b8bffeab765c3e74d9d7833 (diff)
downloadmitmproxy-8dabf88ae53cd8c2a3246a880008305bd7bd292c.tar.gz
mitmproxy-8dabf88ae53cd8c2a3246a880008305bd7bd292c.tar.bz2
mitmproxy-8dabf88ae53cd8c2a3246a880008305bd7bd292c.zip
Remove ability to specify SSL ciphers.
We can re-introduce this if there's demand - the feature needs a bit more thought.
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index 83ec0d56..c3daca14 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -34,9 +34,8 @@ class ProxyError(Exception):
class ProxyConfig:
- def __init__(self, certfile = None, ciphers = None, cacert = None, clientcerts = None, cert_wait_time=0, upstream_cert=False, body_size_limit = None, reverse_proxy=None):
+ def __init__(self, certfile = None, cacert = None, clientcerts = None, cert_wait_time=0, upstream_cert=False, body_size_limit = None, reverse_proxy=None):
self.certfile = certfile
- self.ciphers = ciphers
self.cacert = cacert
self.clientcerts = clientcerts
self.certdir = None
@@ -474,16 +473,6 @@ class ProxyHandler(SocketServer.StreamRequestHandler):
ctx.use_certificate_file(cert)
self.connection = SSL.Connection(ctx, self.connection)
self.connection.set_accept_state()
- #kwargs = dict(
- # certfile = cert,
- # keyfile = self.config.certfile or self.config.cacert,
- # server_side = True,
- # ssl_version = ssl.PROTOCOL_SSLv23,
- # do_handshake_on_connect = True,
- #)
- #if sys.version_info[1] > 6:
- # kwargs["ciphers"] = self.config.ciphers
- #self.connection = ssl.wrap_socket(self.connection, **kwargs)
self.rfile = FileLike(self.connection)
self.wfile = FileLike(self.connection)
@@ -634,11 +623,6 @@ def certificate_option_group(parser):
help = "User-created SSL certificate file."
)
group.add_option(
- "--ciphers", action="store",
- type = "str", dest="ciphers", default=None,
- help = "SSL ciphers."
- )
- group.add_option(
"--client-certs", action="store",
type = "str", dest = "clientcerts", default=None,
help = "Client certificate directory."
@@ -676,7 +660,6 @@ def process_proxy_options(parser, options):
certfile = options.cert,
cacert = cacert,
clientcerts = options.clientcerts,
- ciphers = options.ciphers,
cert_wait_time = options.cert_wait_time,
body_size_limit = body_size_limit,
upstream_cert = options.upstream_cert,