mirror of https://github.com/wolfSSL/wolfssl.git
Fail with NOT_COMPILED_IN if someone tries to use ConfirmSignature with NO_ASN_CRYPT. Also default to signature failed.
parent
a18d0161ef
commit
25d14f1937
|
@ -16612,7 +16612,7 @@ static int ConfirmSignature(SignatureCtx* sigCtx,
|
||||||
const byte* sigParams, word32 sigParamsSz,
|
const byte* sigParams, word32 sigParamsSz,
|
||||||
byte* rsaKeyIdx)
|
byte* rsaKeyIdx)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = ASN_SIG_CONFIRM_E; /* default to failure */
|
||||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) || defined(WOLFSSL_RENESAS_FSPSM_TLS)
|
#if defined(WOLFSSL_RENESAS_TSIP_TLS) || defined(WOLFSSL_RENESAS_FSPSM_TLS)
|
||||||
CertAttribute* certatt = NULL;
|
CertAttribute* certatt = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
@ -17749,8 +17749,8 @@ static int ConfirmSignature(SignatureCtx* sigCtx,
|
||||||
exit_cs:
|
exit_cs:
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/* Warning: The NO_ASN_CRYPT option skips signature checking! */
|
/* For NO_ASN_CRYPT return "not compiled in" */
|
||||||
ret = 0; /* allow unchecked signature */
|
ret = NOT_COMPILED_IN;
|
||||||
#endif /* !NO_ASN_CRYPT */
|
#endif /* !NO_ASN_CRYPT */
|
||||||
|
|
||||||
(void)keyOID;
|
(void)keyOID;
|
||||||
|
|
Loading…
Reference in New Issue