From 4ffaadd4355e943d7fa46f3050a1fb780f4d261d Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Tue, 8 Feb 2011 16:58:38 +0100 Subject: Allow specifying the accepted ciphersuites --- libmproxy/proxy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmproxy/proxy.py') diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py index 631e2470..f3ea2ed2 100644 --- a/libmproxy/proxy.py +++ b/libmproxy/proxy.py @@ -22,8 +22,9 @@ class ProxyError(Exception): class Config: - def __init__(self, pemfile): + def __init__(self, pemfile, ciphers = None): self.pemfile = pemfile + self.ciphers = ciphers def read_chunked(fp): @@ -520,6 +521,7 @@ class ProxyHandler(SocketServer.StreamRequestHandler): keyfile = config.pemfile, server_side = True, ssl_version = ssl.PROTOCOL_SSLv23, + ciphers = config.ciphers, do_handshake_on_connect = False ) self.rfile = FileLike(self.connection) -- cgit v1.2.3