aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTom Rini2019-05-03 14:22:23 -0400
committerTom Rini2019-05-03 14:22:23 -0400
commit90c2ebd2156982eee1af6faa00f6740e9f79b3c5 (patch)
tree65408be4e60989d77b7b65f7cf5cb0e697b0b62d /tools
parentb362fe0848df60569bdb867b7627151747eb6e23 (diff)
parent5859a39a43d15cb775478bd4537e9a2eac1c4cf2 (diff)
Merge git://git.denx.de/u-boot-marvell
- Fix in kwbimage (return code checking) (Young Xiao) - Misc updates to Turris Omnia (Marek)
Diffstat (limited to 'tools')
-rw-r--r--tools/kwbimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index dffaf9043a0..b8f8d38212f 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -701,7 +701,7 @@ int kwb_verify(RSA *key, void *data, int datasz, struct sig_v1 *sig,
goto err_ctx;
}
- if (!EVP_VerifyFinal(ctx, sig->sig, sizeof(sig->sig), evp_key)) {
+ if (EVP_VerifyFinal(ctx, sig->sig, sizeof(sig->sig), evp_key) != 1) {
ret = openssl_err("Could not verify signature");
goto err_ctx;
}