mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
49 lines
1.2 KiB
Diff
49 lines
1.2 KiB
Diff
--- a/dtls/v2.0/nss_dtlsmgr.c
|
|
+++ b/dtls/v2.0/nss_dtlsmgr.c
|
|
@@ -38,7 +38,13 @@
|
|
#include <crypto/aes.h>
|
|
#include <crypto/authenc.h>
|
|
#include <crypto/des.h>
|
|
+#include <linux/version.h>
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
|
|
#include <crypto/sha.h>
|
|
+#else
|
|
+#include <crypto/sha1.h>
|
|
+#include <crypto/sha2.h>
|
|
+#endif
|
|
#include <crypto/skcipher.h>
|
|
#include <crypto/hash.h>
|
|
|
|
--- a/dtls/v2.0/nss_dtlsmgr_ctx.c
|
|
+++ b/dtls/v2.0/nss_dtlsmgr_ctx.c
|
|
@@ -40,7 +40,13 @@
|
|
#include <crypto/aes.h>
|
|
#include <crypto/authenc.h>
|
|
#include <crypto/des.h>
|
|
+#include <linux/version.h>
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
|
|
#include <crypto/sha.h>
|
|
+#else
|
|
+#include <crypto/sha1.h>
|
|
+#include <crypto/sha2.h>
|
|
+#endif
|
|
#include <crypto/skcipher.h>
|
|
#include <crypto/hash.h>
|
|
|
|
--- a/dtls/v2.0/nss_dtlsmgr_ctx_dev.c
|
|
+++ b/dtls/v2.0/nss_dtlsmgr_ctx_dev.c
|
|
@@ -36,7 +36,13 @@
|
|
#include <net/protocol.h>
|
|
#include <net/route.h>
|
|
#include <crypto/aes.h>
|
|
+#include <linux/version.h>
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0)
|
|
#include <crypto/sha.h>
|
|
+#else
|
|
+#include <crypto/sha1.h>
|
|
+#include <crypto/sha2.h>
|
|
+#endif
|
|
|
|
#include <nss_api_if.h>
|
|
#include <nss_dynamic_interface.h>
|