diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-12-26 05:51:42 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-12-26 05:51:42 +0000 |
commit | 095298f570725b1453c0bc223bfe2208ea3b1c93 (patch) | |
tree | a7ec971fb0681a2e1e31623fe468c410de621719 /regress | |
parent | 7a9953452a12b818f6e18e9c39709b03562f1796 (diff) |
mlkem tests: whitespace tweak and fix an error message
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libcrypto/mlkem/parse_test_file.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/regress/lib/libcrypto/mlkem/parse_test_file.c b/regress/lib/libcrypto/mlkem/parse_test_file.c index d79fa3dfd5d..4138e82b678 100644 --- a/regress/lib/libcrypto/mlkem/parse_test_file.c +++ b/regress/lib/libcrypto/mlkem/parse_test_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse_test_file.c,v 1.1 2024/12/26 00:04:24 tb Exp $ */ +/* $OpenBSD: parse_test_file.c,v 1.2 2024/12/26 05:51:41 tb Exp $ */ /* * Copyright (c) 2024 Theo Buehler <tb@openbsd.org> @@ -170,9 +170,11 @@ parse_state_advance(struct parse_state *ps) struct parse { struct parse_state state; - CBS cbs; - char *buf; - size_t buf_max; + + char *buf; + size_t buf_max; + CBS cbs; + const struct test_parse *tctx; void *ctx; @@ -391,7 +393,7 @@ parse_state_set_from_cbb(struct parse *p, CBB *cbb) { if (parse_line_type(p) != LINE_HEX) parse_errx(p, "%s: want %d, got %d", __func__, - LINE_STRING_MATCH, parse_line_type(p)); + LINE_HEX, parse_line_type(p)); if (!line_data_set_from_cbb(parse_state_data(p)[parse_cur(p)], cbb)) parse_errx(p, "line_data_set_from_cbb"); } |