libsecureboot: Report failure for unsupported hash algorithm

Reviewed by:	sjg
Pull request:	https://github.com/freebsd/freebsd-src/pull/1574
This commit is contained in:
Huwyler 2025-01-17 15:55:15 +01:00 committed by Ed Maste
parent 4f4b2b7a4b
commit caaeab697b

View file

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