The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=caaeab697bf98bf96e2fa8cb4a1e22240511fbcc

commit caaeab697bf98bf96e2fa8cb4a1e22240511fbcc
Author:     Huwyler <simon.huwy...@gmail.com>
AuthorDate: 2025-01-17 14:55:15 +0000
Commit:     Ed Maste <ema...@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);

Reply via email to