diff options
author | tb <> | 2024-07-20 18:37:38 +0000 |
---|---|---|
committer | tb <> | 2024-07-20 18:37:38 +0000 |
commit | b653dfcb770bee8e534e072ccb7eefcbb008915a (patch) | |
tree | 3a31a3b621c9ed2afedbebddef9339b022adb7bc /src | |
parent | b68193edfb3424eb0f993aec6089c9e057aa5d4d (diff) | |
download | openbsd-b653dfcb770bee8e534e072ccb7eefcbb008915a.tar.gz openbsd-b653dfcb770bee8e534e072ccb7eefcbb008915a.tar.bz2 openbsd-b653dfcb770bee8e534e072ccb7eefcbb008915a.zip |
Fix golden numbers after beck broke it months ago
(why is it always me who gets to clean up this shit?)
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libssl/client/Makefile | 5 | ||||
-rw-r--r-- | src/regress/lib/libssl/client/clienttest.c | 38 |
2 files changed, 20 insertions, 23 deletions
diff --git a/src/regress/lib/libssl/client/Makefile b/src/regress/lib/libssl/client/Makefile index d073056921..7e2d7a3ecf 100644 --- a/src/regress/lib/libssl/client/Makefile +++ b/src/regress/lib/libssl/client/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.5 2024/04/22 07:31:54 anton Exp $ | 1 | # $OpenBSD: Makefile,v 1.6 2024/07/20 18:37:38 tb Exp $ |
2 | 2 | ||
3 | PROG= clienttest | 3 | PROG= clienttest |
4 | LDADD= ${SSL_INT} -lcrypto | 4 | LDADD= ${SSL_INT} -lcrypto |
@@ -6,7 +6,4 @@ DPADD= ${LIBSSL} ${LIBCRYPTO} | |||
6 | WARNINGS= Yes | 6 | WARNINGS= Yes |
7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror | 7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror |
8 | 8 | ||
9 | # Disable for now for upcoming changes. This needs to be easier to deal with. | ||
10 | REGRESS_EXPECTED_FAILURES+=run-regress-clienttest | ||
11 | |||
12 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c index 18cf2d0c95..0c526f38f8 100644 --- a/src/regress/lib/libssl/client/clienttest.c +++ b/src/regress/lib/libssl/client/clienttest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clienttest.c,v 1.43 2024/02/03 15:58:34 beck Exp $ */ | 1 | /* $OpenBSD: clienttest.c,v 1.44 2024/07/20 18:37:38 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -36,8 +36,8 @@ | |||
36 | #define TLS13_RANDOM_OFFSET (TLS13_HM_OFFSET + 2) | 36 | #define TLS13_RANDOM_OFFSET (TLS13_HM_OFFSET + 2) |
37 | #define TLS13_SESSION_OFFSET (TLS13_HM_OFFSET + 34) | 37 | #define TLS13_SESSION_OFFSET (TLS13_HM_OFFSET + 34) |
38 | #define TLS13_CIPHER_OFFSET (TLS13_HM_OFFSET + 69) | 38 | #define TLS13_CIPHER_OFFSET (TLS13_HM_OFFSET + 69) |
39 | #define TLS13_KEY_SHARE_OFFSET (TLS13_HM_OFFSET + 184) | 39 | #define TLS13_KEY_SHARE_OFFSET (TLS13_HM_OFFSET + 198) |
40 | #define TLS13_ONLY_KEY_SHARE_OFFSET (TLS13_HM_OFFSET + 98) | 40 | #define TLS13_ONLY_KEY_SHARE_OFFSET (TLS13_HM_OFFSET + 112) |
41 | 41 | ||
42 | #define TLS1_3_VERSION_ONLY (TLS1_3_VERSION | 0x10000) | 42 | #define TLS1_3_VERSION_ONLY (TLS1_3_VERSION | 0x10000) |
43 | 43 | ||
@@ -116,9 +116,9 @@ static const uint8_t client_hello_dtls12[] = { | |||
116 | 0xbe, 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00, | 116 | 0xbe, 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00, |
117 | 0x2f, 0x00, 0xba, 0x00, 0x41, 0xc0, 0x12, 0xc0, | 117 | 0x2f, 0x00, 0xba, 0x00, 0x41, 0xc0, 0x12, 0xc0, |
118 | 0x08, 0x00, 0x16, 0x00, 0x0a, 0x00, 0xff, 0x01, | 118 | 0x08, 0x00, 0x16, 0x00, 0x0a, 0x00, 0xff, 0x01, |
119 | 0x00, 0x00, 0x34, 0x00, 0x0b, 0x00, 0x02, 0x01, | 119 | 0x00, 0x00, 0x34, 0x00, 0x0a, 0x00, 0x0a, 0x00, |
120 | 0x00, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, | 120 | 0x08, 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, |
121 | 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, | 121 | 0x19, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, |
122 | 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x18, 0x00, | 122 | 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x18, 0x00, |
123 | 0x16, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, | 123 | 0x16, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, |
124 | 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, | 124 | 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, |
@@ -225,9 +225,9 @@ static const uint8_t client_hello_tls12[] = { | |||
225 | 0x00, 0xba, 0x00, 0x41, 0xc0, 0x11, 0xc0, 0x07, | 225 | 0x00, 0xba, 0x00, 0x41, 0xc0, 0x11, 0xc0, 0x07, |
226 | 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, | 226 | 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, |
227 | 0x00, 0x0a, 0x00, 0xff, 0x01, 0x00, 0x00, 0x34, | 227 | 0x00, 0x0a, 0x00, 0xff, 0x01, 0x00, 0x00, 0x34, |
228 | 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x0a, | 228 | 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x1d, |
229 | 0x00, 0x0a, 0x00, 0x08, 0x00, 0x1d, 0x00, 0x17, | 229 | 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, 0x0b, |
230 | 0x00, 0x18, 0x00, 0x19, 0x00, 0x23, 0x00, 0x00, | 230 | 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, 0x00, 0x00, |
231 | 0x00, 0x0d, 0x00, 0x18, 0x00, 0x16, 0x08, 0x06, | 231 | 0x00, 0x0d, 0x00, 0x18, 0x00, 0x16, 0x08, 0x06, |
232 | 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, 0x01, | 232 | 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, 0x01, |
233 | 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, 0x03, | 233 | 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, 0x03, |
@@ -288,14 +288,14 @@ static const uint8_t client_hello_tls13[] = { | |||
288 | 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, | 288 | 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, |
289 | 0x00, 0x0a, 0x01, 0x00, 0x00, 0x67, 0x00, 0x2b, | 289 | 0x00, 0x0a, 0x01, 0x00, 0x00, 0x67, 0x00, 0x2b, |
290 | 0x00, 0x05, 0x04, 0x03, 0x04, 0x03, 0x03, 0x00, | 290 | 0x00, 0x05, 0x04, 0x03, 0x04, 0x03, 0x03, 0x00, |
291 | 0x33, 0x00, 0x26, 0x00, 0x24, 0x00, 0x1d, 0x00, | 291 | 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x1d, 0x00, |
292 | 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 292 | 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, 0x33, 0x00, |
293 | 0x26, 0x00, 0x24, 0x00, 0x1d, 0x00, 0x20, 0x00, | ||
293 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 294 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
294 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 295 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
295 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 296 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
296 | 0x00, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, | 297 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
297 | 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x1d, 0x00, | 298 | 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, 0x00, |
298 | 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, 0x23, 0x00, | ||
299 | 0x00, 0x00, 0x0d, 0x00, 0x18, 0x00, 0x16, 0x08, | 299 | 0x00, 0x00, 0x0d, 0x00, 0x18, 0x00, 0x16, 0x08, |
300 | 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, | 300 | 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, |
301 | 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, | 301 | 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, |
@@ -323,14 +323,14 @@ static const uint8_t client_hello_tls13_only[] = { | |||
323 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x13, 0x03, | 323 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x13, 0x03, |
324 | 0x13, 0x02, 0x13, 0x01, 0x00, 0xff, 0x01, 0x00, | 324 | 0x13, 0x02, 0x13, 0x01, 0x00, 0xff, 0x01, 0x00, |
325 | 0x00, 0x61, 0x00, 0x2b, 0x00, 0x03, 0x02, 0x03, | 325 | 0x00, 0x61, 0x00, 0x2b, 0x00, 0x03, 0x02, 0x03, |
326 | 0x04, 0x00, 0x33, 0x00, 0x26, 0x00, 0x24, 0x00, | 326 | 0x04, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, |
327 | 0x1d, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, | 327 | 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, |
328 | 0x33, 0x00, 0x26, 0x00, 0x24, 0x00, 0x1d, 0x00, | ||
329 | 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
328 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 330 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
329 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 331 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
330 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | 332 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
331 | 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x02, 0x01, | 333 | 0x00, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, |
332 | 0x00, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, | ||
333 | 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, | ||
334 | 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x14, 0x00, | 334 | 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x14, 0x00, |
335 | 0x12, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, | 335 | 0x12, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, |
336 | 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, | 336 | 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, |