aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/contrib/tls/_constructs.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-26 06:38:03 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-26 06:38:03 +0200
commit1093d185ec78cdfff4fb425b902a52f61991cf5e (patch)
tree8a5ae4307f89c35d042c733c94cc537ae08d62cb /libmproxy/contrib/tls/_constructs.py
parent3fa65c48dd2880a806985e273b3fa280103e2a7b (diff)
downloadmitmproxy-1093d185ec78cdfff4fb425b902a52f61991cf5e.tar.gz
mitmproxy-1093d185ec78cdfff4fb425b902a52f61991cf5e.tar.bz2
mitmproxy-1093d185ec78cdfff4fb425b902a52f61991cf5e.zip
manually read tls clienthello
Diffstat (limited to 'libmproxy/contrib/tls/_constructs.py')
-rw-r--r--libmproxy/contrib/tls/_constructs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/contrib/tls/_constructs.py b/libmproxy/contrib/tls/_constructs.py
index 49661efb..a5f8b524 100644
--- a/libmproxy/contrib/tls/_constructs.py
+++ b/libmproxy/contrib/tls/_constructs.py
@@ -101,7 +101,7 @@ Extension = Struct(
UBInt16("type"),
Embed(
Switch(
- "data", lambda ctx: ctx.type,
+ "", lambda ctx: ctx.type,
{
0x00: SNIExtension,
0x10: ALPNExtension
@@ -202,7 +202,7 @@ Certificate = Struct(
Handshake = Struct(
"Handshake",
UBInt8("msg_type"),
- UBInt24("length"), # TODO: Reject packets with length > 2 ** 24
+ UBInt24("length"),
Bytes("body", lambda ctx: ctx.length),
)