kumquat-buildroot/package/cups/0006-cups-hash-c-LibreSSL-version-does-not-support-several-hashes.patch
Fabrice Fontaine a3e72fe956 package/cups: fix build without gnutls
Fix the following build failure without gnutls raised since bump to
version 2.4.7 in commit 55c80fdfb3 and
b5b1418da7

hash.c:16:12: fatal error: gnutls/crypto.h: No such file or directory
   16 | #  include <gnutls/crypto.h>
      |            ^~~~~~~~~~~~~~~~~

Those patches have been requested to upstream by Peter Korsgaard:
https://github.com/OpenPrinting/cups/issues/762

Fixes:
 - http://autobuild.buildroot.org/results/888e9e252821bda1e051400d4aa850cd082e8e76

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-01-06 10:50:41 +01:00

31 lines
855 B
Diff

From 0dd97fcaeeb16ed836e8542d75e2396fb1d129d9 Mon Sep 17 00:00:00 2001
From: Zdenek Dohnal <zdohnal@redhat.com>
Date: Tue, 3 Oct 2023 14:39:33 +0200
Subject: [PATCH] cups/hash.c: LibreSSL version does not support several hashes
Upstream: https://github.com/OpenPrinting/cups/commit/0dd97fcaeeb16ed836e8542d75e2396fb1d129d9
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
cups/hash.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/cups/hash.c b/cups/hash.c
index c447bab4e..5eefa1010 100644
--- a/cups/hash.c
+++ b/cups/hash.c
@@ -254,14 +254,6 @@ hash_data(const char *algorithm, // I - Algorithm
{
md = EVP_sha512();
}
- else if (!strcmp(algorithm, "sha2-512_224"))
- {
- md = EVP_sha512_224();
- }
- else if (!strcmp(algorithm, "sha2-512_256"))
- {
- md = EVP_sha512_256();
- }
if (md)
{