@samitouri / QOSamiQemu / commits / 0e62034ca1

crypto: fix build against nettle >= 4

sha.h has been deprecated. It seems we can rely on sha1.h/sha2.h since we depend on >= 3.7.3. Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4184 Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Marc-André Lureau committed Jun 28, 2026 at 23:50 UTC 0e62034ca10f9d71fba43c8277a6590540217df8
1 file changed +2 -1
crypto/hash-nettle.c
+2 -1
@@ -24,7 +24,8 @@
24 #include "crypto/hash.h"
25 #include "hashpriv.h"
26 #include <nettle/md5.h>
27 -#include <nettle/sha.h>
27 +#include <nettle/sha1.h>
28 +#include <nettle/sha2.h>
29 #include <nettle/ripemd160.h>
30 #ifdef CONFIG_CRYPTO_SM3
31 #include <nettle/sm3.h>