From 1569ac3b6bbcae9c3f4898e0d34aec8f88297ee6 Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Sun, 22 Jan 2023 21:45:23 +0100 Subject: [PATCH 1/5] cryptoapi: v2.0: fix SHA1 header include SHA1 header has been merged to the generic SHA one, and with that the cryptohash.h was dropped. So, fix include in kernels 5.8 and newer. Signed-off-by: Robert Marko --- cryptoapi/v2.0/nss_cryptoapi.c | 5 +++++ cryptoapi/v2.0/nss_cryptoapi_aead.c | 5 +++++ cryptoapi/v2.0/nss_cryptoapi_ahash.c | 5 +++++ 3 files changed, 15 insertions(+) --- a/cryptoapi/v2.0/nss_cryptoapi.c +++ b/cryptoapi/v2.0/nss_cryptoapi.c @@ -39,7 +39,12 @@ #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) #include +#else +#include +#include +#endif #include #include #include --- a/cryptoapi/v2.0/nss_cryptoapi_aead.c +++ b/cryptoapi/v2.0/nss_cryptoapi_aead.c @@ -39,7 +39,12 @@ #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) #include +#else +#include +#include +#endif #include #include #include --- a/cryptoapi/v2.0/nss_cryptoapi_ahash.c +++ b/cryptoapi/v2.0/nss_cryptoapi_ahash.c @@ -38,7 +38,12 @@ #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) #include +#else +#include +#include +#endif #include #include #include