libsecureboot: Report failure for unsupported hash algorithm

Reviewed by:	sjg
Pull request:	https://github.com/freebsd/freebsd-src/pull/1574

(cherry picked from commit caaeab697b)
This commit is contained in:
Huwyler 2025-01-17 15:55:15 +01:00 • committed by Ed Maste
parent cbb7dbbde2
commit 0ea2924f81

View file

@ -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);