Skip to content

Commit

Permalink
Fail with NOT_COMPILED_IN if someone tries to use ConfirmSignature wi…
Browse files Browse the repository at this point in the history
…th NO_ASN_CRYPT.
  • Loading branch information
dgarske committed Aug 2, 2024
1 parent a18d016 commit a72156f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wolfcrypt/src/asn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a72156f

Please sign in to comment.