aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/contrib/tls/_constructs.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-26 22:00:50 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-26 22:00:50 +0200
commit9c6b3eb58a22817daa576063c3626d7a239e7093 (patch)
treeab50d2b745c975e5e539a1866e07a20fa15f2577 /libmproxy/contrib/tls/_constructs.py
parent2cfc1b1b4030838f6047f18f8014c91926b414d0 (diff)
downloadmitmproxy-9c6b3eb58a22817daa576063c3626d7a239e7093.tar.gz
mitmproxy-9c6b3eb58a22817daa576063c3626d7a239e7093.tar.bz2
mitmproxy-9c6b3eb58a22817daa576063c3626d7a239e7093.zip
clean up clienthello parsing
Diffstat (limited to 'libmproxy/contrib/tls/_constructs.py')
-rw-r--r--libmproxy/contrib/tls/_constructs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmproxy/contrib/tls/_constructs.py b/libmproxy/contrib/tls/_constructs.py
index a5f8b524..9c57a799 100644
--- a/libmproxy/contrib/tls/_constructs.py
+++ b/libmproxy/contrib/tls/_constructs.py
@@ -4,8 +4,8 @@
from __future__ import absolute_import, division, print_function
-from construct import Array, Bytes, Struct, UBInt16, UBInt32, UBInt8, PascalString, Embed, \
- TunnelAdapter, GreedyRange, Switch
+from construct import (Array, Bytes, Struct, UBInt16, UBInt32, UBInt8, PascalString, Embed, TunnelAdapter, GreedyRange,
+ Switch, OptionalGreedyRange)
from .utils import UBInt24
@@ -113,7 +113,7 @@ Extension = Struct(
extensions = TunnelAdapter(
PascalString("extensions", length_field=UBInt16("extensions_length")),
- GreedyRange(Extension)
+ OptionalGreedyRange(Extension)
)
ClientHello = Struct(