summaryrefslogtreecommitdiff
path: root/net-vpn/vtun/files/vtun-3.0.3-fno-common.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-vpn/vtun/files/vtun-3.0.3-fno-common.patch')
-rw-r--r--net-vpn/vtun/files/vtun-3.0.3-fno-common.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/net-vpn/vtun/files/vtun-3.0.3-fno-common.patch b/net-vpn/vtun/files/vtun-3.0.3-fno-common.patch
new file mode 100644
index 000000000000..2dd6dd2e3348
--- /dev/null
+++ b/net-vpn/vtun/files/vtun-3.0.3-fno-common.patch
@@ -0,0 +1,25 @@
+https://bugs.gentoo.org/708372
+--- a/auth.c
++++ b/auth.c
+@@ -70,7 +70,7 @@ void gen_chal(char *buf)
+ void encrypt_chal(char *chal, char *pwd)
+ {
+ register int i;
+- BF_KEY key;
++ extern BF_KEY key;
+
+ BF_set_key(&key, 16, MD5(pwd,strlen(pwd),NULL));
+
+--- a/lfd_encrypt.c
++++ b/lfd_encrypt.c
+@@ -64,8 +64,8 @@
+ #define ENC_BUF_SIZE VTUN_FRAME_SIZE + 128
+ #define ENC_KEY_SIZE 16
+
+-BF_KEY key;
+-char * enc_buf;
++extern BF_KEY key;
++extern char * enc_buf;
+ char * dec_buf;
+
+ #define CIPHER_INIT 0