diff options
author | Huwyler <simon.huwyler@gmail.com> | 2025-01-17 14:55:15 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2025-02-18 18:41:07 +0000 |
commit | 0ea2924f8126bb32ee704b071a87185140297ab3 (patch) | |
tree | 9f0ca27b8435c12bf54bb384ed39b41692cbfc54 | |
parent | cbb7dbbde25daa89718a7d8b36be782776bcaabb (diff) |
libsecureboot: Report failure for unsupported hash algorithm
Reviewed by: sjg
Pull request: https://github.com/freebsd/freebsd-src/pull/1574
(cherry picked from commit caaeab697bf98bf96e2fa8cb4a1e22240511fbcc)
-rw-r--r-- | lib/libsecureboot/openpgp/opgp_sig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libsecureboot/openpgp/opgp_sig.c b/lib/libsecureboot/openpgp/opgp_sig.c index a6aa787ee5c0..d69dbe4cfb2b 100644 --- a/lib/libsecureboot/openpgp/opgp_sig.c +++ b/lib/libsecureboot/openpgp/opgp_sig.c @@ -343,6 +343,7 @@ openpgp_verify(const char *filename, break; default: warnx("unsupported hash algorithm: %s", hname); + rc = -1; goto oops; } md->init(&mctx.vtable); |