From 42bbaa1869fe90e3aa7976fafb6eddc726512145 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Fri, 20 Mar 2026 08:52:04 -0500 Subject: [PATCH] Fix DecodeObjectId unknown ext parse --- wolfcrypt/src/asn.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 9b2faf19c5..aa9e2520ca 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -1245,8 +1245,6 @@ static int GetASN_Integer(const byte* input, word32 idx, int length, */ int GetASN_BitString(const byte* input, word32 idx, int length) { -#if (!defined(HAVE_SELFTEST) && !defined(HAVE_FIPS)) || \ - (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2)) /* Check contents consist of one or more octets. */ if (length == 0) { #ifdef WOLFSSL_DEBUG_ASN_TEMPLATE @@ -1254,7 +1252,6 @@ int GetASN_BitString(const byte* input, word32 idx, int length) #endif return ASN_PARSE_E; } -#endif /* Ensure unused bits value is valid range. */ if (input[idx] > 7) { #ifdef WOLFSSL_DEBUG_ASN_TEMPLATE