Skip to content

Commit

Permalink
Add parser test for incomplete TLS session specification
Browse files Browse the repository at this point in the history
Ref. eng/recordflux/RecordFlux#1487
  • Loading branch information
treiher committed Dec 1, 2023
1 parent 9ab5b4f commit 665c51b
Show file tree
Hide file tree
Showing 5 changed files with 201 additions and 116 deletions.
6 changes: 4 additions & 2 deletions tests/data/specs/parse_only/tls_handshake.rflx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ package TLS_Handshake is
Legacy_Version : Protocol_Version;
Random : Opaque
with Size => 32 * 8
if Legacy_Version = TLS_1_2;
then Legacy_Session_ID_Length
if Legacy_Version = TLS_1_2;
Legacy_Session_ID_Length : Legacy_Session_ID_Length;
Legacy_Session_ID : Opaque
with Size => Legacy_Session_ID_Length * 8;
Expand Down Expand Up @@ -147,7 +148,8 @@ package TLS_Handshake is
Legacy_Version : Protocol_Version;
Random : Opaque
with Size => 32 * 8
if Legacy_Version = TLS_1_2;
then Legacy_Session_ID_Length
if Legacy_Version = TLS_1_2;
Legacy_Session_ID_Length : Legacy_Session_ID_Length;
Legacy_Session_ID : Opaque
with Size => Legacy_Session_ID_Length * 8;
Expand Down
Loading

0 comments on commit 665c51b

Please sign in to comment.