diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-26 06:38:03 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-26 06:38:03 +0200 |
commit | 1093d185ec78cdfff4fb425b902a52f61991cf5e (patch) | |
tree | 8a5ae4307f89c35d042c733c94cc537ae08d62cb /libmproxy/contrib/tls/_constructs.py | |
parent | 3fa65c48dd2880a806985e273b3fa280103e2a7b (diff) | |
download | mitmproxy-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.py | 4 |
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), ) |