blob: 2dd6dd2e3348b31a3765f3b23aba4ba8432b9848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|