From a72156f5011e462338194a4bca54729567b4a026 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 2 Aug 2024 08:05:22 -0700 Subject: [PATCH] Fail with NOT_COMPILED_IN if someone tries to use ConfirmSignature with NO_ASN_CRYPT. --- wolfcrypt/src/asn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 1afe0f069a..89d0742897 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -17749,8 +17749,7 @@ static int ConfirmSignature(SignatureCtx* sigCtx, exit_cs: #else - /* Warning: The NO_ASN_CRYPT option skips signature checking! */ - ret = 0; /* allow unchecked signature */ + ret = NOT_COMPILED_IN; #endif /* !NO_ASN_CRYPT */ (void)keyOID;