diff options
| author | tb <> | 2026-01-04 09:42:32 +0000 |
|---|---|---|
| committer | tb <> | 2026-01-04 09:42:32 +0000 |
| commit | d35a685166b500418ee47359c5cfcd27c97b3eae (patch) | |
| tree | cda4da1ab3cdd5637648e6c550d2edee73643cca /src/regress/lib | |
| parent | 92a00177b1792955d45f8653ea60eb986b21c90a (diff) | |
| download | openbsd-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/lib')
| -rw-r--r-- | src/regress/lib/libcrypto/asn1/Makefile | 4 | ||||
| -rw-r--r-- | src/regress/lib/libcrypto/asn1/asn1basic.c | 6 |
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 | ||
| 3 | PROGS = \ | 3 | PROGS = \ |
| 4 | asn1api \ | 4 | asn1api \ |
| @@ -22,6 +22,8 @@ CFLAGS+= -Wall -Wundef -Werror | |||
| 22 | CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/asn1 | 22 | CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/asn1 |
| 23 | CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/bytestring | 23 | CFLAGS+= -I${.CURDIR}/../../../../lib/libcrypto/bytestring |
| 24 | 24 | ||
| 25 | REGRESS_EXPECTED_FAILURES += run-regress-asn1basic | ||
| 26 | |||
| 25 | LDADD_asn1basic = ${CRYPTO_INT} | 27 | LDADD_asn1basic = ${CRYPTO_INT} |
| 26 | LDADD_asn1object = ${CRYPTO_INT} | 28 | LDADD_asn1object = ${CRYPTO_INT} |
| 27 | LDADD_asn1time = ${CRYPTO_INT} | 29 | 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 @@ | |||
| 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 | ||
| 73 | static const uint8_t asn1_bit_string_trailing_zeroes_encoded[] = { | 73 | static const uint8_t asn1_bit_string_trailing_zeroes_encoded[] = { |
| 74 | 0x03, 0x03, 0x02, 0x04, 0x00, | 74 | 0x03, 0x02, 0x02, 0x04, |
| 75 | }; | 75 | }; |
| 76 | 76 | ||
| 77 | static int | 77 | static 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); |
