git: caaeab697bf9 - main - libsecureboot: Report failure for unsupported hash algorithm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Jan 2025 18:59:43 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=caaeab697bf98bf96e2fa8cb4a1e22240511fbcc
commit caaeab697bf98bf96e2fa8cb4a1e22240511fbcc
Author: Huwyler <simon.huwyler@gmail.com>
AuthorDate: 2025-01-17 14:55:15 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-01-20 18:59:20 +0000
libsecureboot: Report failure for unsupported hash algorithm
Reviewed by: sjg
Pull request: https://github.com/freebsd/freebsd-src/pull/1574
---
lib/libsecureboot/openpgp/opgp_sig.c | 1 +
1 file changed, 1 insertion(+)
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);