summaryrefslogtreecommitdiff
path: root/src/regress
diff options
context:
space:
mode:
authortb <>2026-01-04 09:42:32 +0000
committertb <>2026-01-04 09:42:32 +0000
commitd35a685166b500418ee47359c5cfcd27c97b3eae (patch)
treecda4da1ab3cdd5637648e6c550d2edee73643cca /src/regress
parent92a00177b1792955d45f8653ea60eb986b21c90a (diff)
downloadopenbsd-d35a685166b500418ee47359c5cfcd27c97b3eae.tar.gz
openbsd-d35a685166b500418ee47359c5cfcd27c97b3eae.tar.bz2
openbsd-d35a685166b500418ee47359c5cfcd27c97b3eae.zip
asn1basic: switch test to expect correct encoding
This test fails, so mark the asn1basic test as an expected failure
Diffstat (limited to 'src/regress')
-rw-r--r--src/regress/lib/libcrypto/asn1/Makefile4
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1basic.c6
2 files changed, 6 insertions, 4 deletions
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 @@
1# $OpenBSD: Makefile,v 1.28 2024/02/29 20:03:47 tb Exp $ 1# $OpenBSD: Makefile,v 1.29 2026/01/04 09:42:32 tb Exp $
2 2
3PROGS = \ 3PROGS = \
4 asn1api \ 4 asn1api \
@@ -22,6 +22,8 @@ CFLAGS+= -Wall -Wundef -Werror
22CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/asn1 22CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/asn1
23CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/bytestring 23CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/bytestring
24 24
25REGRESS_EXPECTED_FAILURES += run-regress-asn1basic
26
25LDADD_asn1basic = ${CRYPTO_INT} 27LDADD_asn1basic = ${CRYPTO_INT}
26LDADD_asn1object = ${CRYPTO_INT} 28LDADD_asn1object = ${CRYPTO_INT}
27LDADD_asn1time = ${CRYPTO_INT} 29LDADD_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 @@
1/* $OpenBSD: asn1basic.c,v 1.18 2026/01/04 09:36:34 tb Exp $ */ 1/* $OpenBSD: asn1basic.c,v 1.19 2026/01/04 09:42:32 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2021 Google, Inc 4 * Copyright (c) 2021 Google, Inc
@@ -71,7 +71,7 @@ static const uint8_t asn1_bit_string_trailing_zeroes[] = {
71}; 71};
72 72
73static const uint8_t asn1_bit_string_trailing_zeroes_encoded[] = { 73static const uint8_t asn1_bit_string_trailing_zeroes_encoded[] = {
74 0x03, 0x03, 0x02, 0x04, 0x00, 74 0x03, 0x02, 0x02, 0x04,
75}; 75};
76 76
77static int 77static int
@@ -175,7 +175,7 @@ asn1_bit_string_test(void)
175 goto failed; 175 goto failed;
176 176
177 /* 177 /*
178 * ASN1_STRING_set() attempts to truncate and picks up wrong unused bits 178 * ASN1_STRING_set() truncates and determines unused bits
179 */ 179 */
180 180
181 ASN1_BIT_STRING_free(abs); 181 ASN1_BIT_STRING_free(abs);