mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
33 lines
798 B
Diff
33 lines
798 B
Diff
--- a/openvpn/src/nss_ovpnmgr_crypto.c
|
|
+++ b/openvpn/src/nss_ovpnmgr_crypto.c
|
|
@@ -28,7 +28,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/hash.h>
|
|
|
|
#include <nss_api_if.h>
|
|
--- a/openvpn/src/nss_ovpnmgr_route.c
|
|
+++ b/openvpn/src/nss_ovpnmgr_route.c
|
|
@@ -34,7 +34,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/hash.h>
|
|
|
|
#include <nss_api_if.h>
|