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