Remove conditional and just assign boolean result

This commit is contained in:
Josh Holtrop
2025-11-24 15:55:32 -05:00
parent 80d3037332
commit d766b82bac

View File

@@ -1626,9 +1626,9 @@ static int ProcessBufferCertPublicKey(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
}
#ifdef WC_RSA_PSS
if (ssl)
ssl->ctx->useRsaPss = (cert->keyOID == RSAPSSk) ? 1U : 0U;
ssl->ctx->useRsaPss = cert->keyOID == RSAPSSk;
else
ctx->useRsaPss = (cert->keyOID == RSAPSSk) ? 1U : 0U;
ctx->useRsaPss = cert->keyOID == RSAPSSk;
#endif
break;
#endif /* !NO_RSA */