diff options
author | Huwyler <simon.huwyler@gmail.com> | 2025-01-17 14:55:15 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2025-01-20 18:59:20 +0000 |
commit | caaeab697bf98bf96e2fa8cb4a1e22240511fbcc (patch) | |
tree | a70ba69e3646eeda2bfcd51f30db8b0a4bb87f2a /lib | |
parent | 4f4b2b7a4b6c5642320479a765f850c394766276 (diff) |
libsecureboot: Report failure for unsupported hash algorithm
Reviewed by: sjg
Pull request: https://github.com/freebsd/freebsd-src/pull/1574
Diffstat (limited to 'lib')
-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 b99a1be459c1..73c482e4c28d 100644 --- a/lib/libsecureboot/openpgp/opgp_sig.c +++ b/lib/libsecureboot/openpgp/opgp_sig.c @@ -341,6 +341,7 @@ openpgp_verify(const char *filename, break; default: warnx("unsupported hash algorithm: %s", hname); + rc = -1; goto oops; } md->init(&mctx.vtable); |