From 4c0cc66cde0c4a30aa049b586af311501304e9ce Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Sun, 13 Mar 2022 13:47:24 +0100 Subject: [PATCH 3/3] nss-crypto: fix SHA header include in 5.15 SHA header was split into SHA-1 and SHA-2 headers in kernel 5.11, so fix the include for newer kernels. Signed-off-by: Robert Marko --- v2.0/src/nss_crypto_ctrl.c | 6 ++++++ v2.0/src/nss_crypto_hlos.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/v2.0/src/nss_crypto_ctrl.c b/v2.0/src/nss_crypto_ctrl.c index 72d1602..a462705 100644 --- a/v2.0/src/nss_crypto_ctrl.c +++ b/v2.0/src/nss_crypto_ctrl.c @@ -38,7 +38,13 @@ #include #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) #include +#else +#include +#include +#endif #include #include #include diff --git a/v2.0/src/nss_crypto_hlos.h b/v2.0/src/nss_crypto_hlos.h index e827f4f..5565472 100644 --- a/v2.0/src/nss_crypto_hlos.h +++ b/v2.0/src/nss_crypto_hlos.h @@ -58,7 +58,11 @@ #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0) #include #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) #include +#else +#include +#endif #include #include #include -- 2.35.1