Skip to content

Commit

Permalink
verify_stm32_image: return -1 in case of verification error
Browse files Browse the repository at this point in the history
  • Loading branch information
embetrix committed Dec 13, 2024
1 parent a5cf743 commit 281a0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stm32mp-sign-tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ int sign_stm32_image(std::vector<unsigned char>& image, EC_KEY* key) {

// Verify the signature
if (verify_stm32_image(image, key)) {
return 1;
return -1;
}

return 0;
Expand Down

0 comments on commit 281a0e7

Please sign in to comment.