diff options
author | tb <> | 2020-03-13 17:47:38 +0000 |
---|---|---|
committer | tb <> | 2020-03-13 17:47:38 +0000 |
commit | 96cf222f202447895d0d051a4c795f157e301e07 (patch) | |
tree | 6514084347052fdefd96404caf5ee2a12cf413a2 /src/regress/lib | |
parent | 392ee6d491e597c1f18e21334e3cb7998133074e (diff) | |
download | openbsd-96cf222f202447895d0d051a4c795f157e301e07.tar.gz openbsd-96cf222f202447895d0d051a4c795f157e301e07.tar.bz2 openbsd-96cf222f202447895d0d051a4c795f157e301e07.zip |
Increment a few more sequence numbers where the carry is close to
crossing a byte boundary.
Diffstat (limited to 'src/regress/lib')
-rw-r--r-- | src/regress/lib/libssl/record_layer/record_layer_test.c | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/record_layer/record_layer_test.c b/src/regress/lib/libssl/record_layer/record_layer_test.c index d59147112c..85d425b920 100644 --- a/src/regress/lib/libssl/record_layer/record_layer_test.c +++ b/src/regress/lib/libssl/record_layer/record_layer_test.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: record_layer_test.c,v 1.1 2020/03/13 16:04:31 jsing Exp $ */ | 1 | /* $OpenBSD: record_layer_test.c,v 1.2 2020/03/13 17:47:38 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -52,6 +52,46 @@ struct seq_num_test seq_num_tests[] = { | |||
52 | .want = 1, | 52 | .want = 1, |
53 | }, | 53 | }, |
54 | { | 54 | { |
55 | .seq_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe}, | ||
56 | .want_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff}, | ||
57 | .want = 1, | ||
58 | }, | ||
59 | { | ||
60 | .seq_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff}, | ||
61 | .want_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00}, | ||
62 | .want = 1, | ||
63 | }, | ||
64 | { | ||
65 | .seq_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00}, | ||
66 | .want_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01}, | ||
67 | .want = 1, | ||
68 | }, | ||
69 | { | ||
70 | .seq_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff}, | ||
71 | .want_num = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00}, | ||
72 | .want = 1, | ||
73 | }, | ||
74 | { | ||
75 | .seq_num = {0xab, 0xcd, 0xef, 0x00, 0xfe, 0xff, 0xff, 0xff}, | ||
76 | .want_num = {0xab, 0xcd, 0xef, 0x00, 0xff, 0x00, 0x00, 0x00}, | ||
77 | .want = 1, | ||
78 | }, | ||
79 | { | ||
80 | .seq_num = {0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, | ||
81 | .want_num = {0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, | ||
82 | .want = 1, | ||
83 | }, | ||
84 | { | ||
85 | .seq_num = {0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, | ||
86 | .want_num = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, | ||
87 | .want = 1, | ||
88 | }, | ||
89 | { | ||
90 | .seq_num = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, | ||
91 | .want_num = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01}, | ||
92 | .want = 1, | ||
93 | }, | ||
94 | { | ||
55 | .seq_num = {0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, | 95 | .seq_num = {0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, |
56 | .want_num = {0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, | 96 | .want_num = {0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
57 | .want = 1, | 97 | .want = 1, |