aboutsummaryrefslogtreecommitdiff
path: root/lib/libsecureboot/verify_file.c
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2019-04-09 22:20:11 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2019-04-09 22:20:11 +0000
commit7b8b0fdba02ab829870d1b60d997e577c225a7a8 (patch)
tree2eb7ff71bb7a68965c4f58e537ccff61479ce4d5 /lib/libsecureboot/verify_file.c
parent899185287c8f0084c2fbef9ee9e8e832f791edac (diff)
downloadsrc-7b8b0fdba02ab829870d1b60d997e577c225a7a8.tar.gz
src-7b8b0fdba02ab829870d1b60d997e577c225a7a8.zip
Always report file with incorrect hash.
Notes
Notes: svn path=/head/; revision=346070
Diffstat (limited to 'lib/libsecureboot/verify_file.c')
-rw-r--r--lib/libsecureboot/verify_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libsecureboot/verify_file.c b/lib/libsecureboot/verify_file.c
index 7754095149c1..369c0bb8eb37 100644
--- a/lib/libsecureboot/verify_file.c
+++ b/lib/libsecureboot/verify_file.c
@@ -366,7 +366,7 @@ verify_file(int fd, const char *filename, off_t off, int severity)
return (rc);
}
- if (severity || verbose)
+ if (severity || verbose || rc == VE_FINGERPRINT_WRONG)
printf("Unverified: %s\n", ve_error_get());
if (rc == VE_FINGERPRINT_UNKNOWN && severity < VE_MUST)
rc = VE_UNVERIFIED_OK;