From d35a685166b500418ee47359c5cfcd27c97b3eae Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 4 Jan 2026 09:42:32 +0000 Subject: asn1basic: switch test to expect correct encoding This test fails, so mark the asn1basic test as an expected failure --- src/regress/lib/libcrypto/asn1/Makefile | 4 +++- src/regress/lib/libcrypto/asn1/asn1basic.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/asn1/Makefile b/src/regress/lib/libcrypto/asn1/Makefile index 1ba2fecf23..1bb9da8585 100644 --- a/src/regress/lib/libcrypto/asn1/Makefile +++ b/src/regress/lib/libcrypto/asn1/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.28 2024/02/29 20:03:47 tb Exp $ +# $OpenBSD: Makefile,v 1.29 2026/01/04 09:42:32 tb Exp $ PROGS = \ asn1api \ @@ -22,6 +22,8 @@ CFLAGS+= -Wall -Wundef -Werror CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/asn1 CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/bytestring +REGRESS_EXPECTED_FAILURES += run-regress-asn1basic + LDADD_asn1basic = ${CRYPTO_INT} LDADD_asn1object = ${CRYPTO_INT} LDADD_asn1time = ${CRYPTO_INT} diff --git a/src/regress/lib/libcrypto/asn1/asn1basic.c b/src/regress/lib/libcrypto/asn1/asn1basic.c index 7c4e329e4b..e6df6559f5 100644 --- a/src/regress/lib/libcrypto/asn1/asn1basic.c +++ b/src/regress/lib/libcrypto/asn1/asn1basic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1basic.c,v 1.18 2026/01/04 09:36:34 tb Exp $ */ +/* $OpenBSD: asn1basic.c,v 1.19 2026/01/04 09:42:32 tb Exp $ */ /* * Copyright (c) 2017, 2021 Joel Sing * Copyright (c) 2021 Google, Inc @@ -71,7 +71,7 @@ static const uint8_t asn1_bit_string_trailing_zeroes[] = { }; static const uint8_t asn1_bit_string_trailing_zeroes_encoded[] = { - 0x03, 0x03, 0x02, 0x04, 0x00, + 0x03, 0x02, 0x02, 0x04, }; static int @@ -175,7 +175,7 @@ asn1_bit_string_test(void) goto failed; /* - * ASN1_STRING_set() attempts to truncate and picks up wrong unused bits + * ASN1_STRING_set() truncates and determines unused bits */ ASN1_BIT_STRING_free(abs); -- cgit v1.2.3-55-g6feb