File 0010-update-for-new-mbedtls.patch of Package qemu

From 4b604056f2b17ab25717384f689074b4a50d3b18 Mon Sep 17 00:00:00 2001
From: Daniel Axtens <dja@axtens.net>
Date: Wed, 2 Sep 2020 23:57:07 +1000
Subject: [PATCH 10/12] update for new mbedtls

Signed-off-by: Daniel Axtens <dja@axtens.net>
---
 lib/libcrypto/appended_sig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roms/SLOF/lib/libcrypto/appended_sig.c b/roms/SLOF/lib/libcrypto/appended_sig.c
index 4bebac2..cb58bdc 100644
--- a/roms/SLOF/lib/libcrypto/appended_sig.c
+++ b/roms/SLOF/lib/libcrypto/appended_sig.c
@@ -59,7 +59,7 @@ int verify_appended_signature(void *blob, size_t len) {
 
 
 	rc = mbedtls_pkcs7_parse_der(ptr, modsig->sig_len, pkcs7);
-	if (rc) {
+	if (rc != MBEDTLS_PKCS7_SIGNED_DATA) {
 		printf("Appended signature: error parsing PKCS#7 data: %d. Aborting.\n", rc);
 		rc = 0;
 		goto exit;
-- 
2.33.1

openSUSE Build Service is sponsored by