mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
33 lines
806 B
Diff
33 lines
806 B
Diff
--- a/tls/nss_tlsmgr_crypto.c
|
|
+++ b/tls/nss_tlsmgr_crypto.c
|
|
@@ -41,7 +41,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>
|
|
#include <crypto/internal/hash.h>
|
|
--- a/tls/nss_tlsmgr_tun.c
|
|
+++ b/tls/nss_tlsmgr_tun.c
|
|
@@ -35,7 +35,13 @@
|
|
#include <linux/atomic.h>
|
|
#include <linux/tlshdr.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>
|