Skip to content

Commit

Permalink
Add converted TLS session specification
Browse files Browse the repository at this point in the history
Ref. #291
  • Loading branch information
treiher committed Aug 25, 2020
1 parent dd962a8 commit 377ef6d
Show file tree
Hide file tree
Showing 3 changed files with 1,879 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1884,6 +1884,14 @@ def test_tls() -> None:
p.create_model()


def test_tls_sessions() -> None:
p = Parser()
for f in ["tls_handshake_session.rflx", "tls_record_session.rflx"]:
p.parse(Path(f"{TESTDIR}/{f}"))
model = p.create_model()
assert len(model.sessions) == 2


def test_message_with_two_length_fields() -> None:
p = Parser()
p.parse_string(
Expand Down
Loading

0 comments on commit 377ef6d

Please sign in to comment.