]> git.pld-linux.org Git - packages/squid.git/blob - squid-2.5.STABLE10-wb_ntlm_auth_silent.patch
- removed outdated squid patches, they're all in sources
[packages/squid.git] / squid-2.5.STABLE10-wb_ntlm_auth_silent.patch
1 Index: squid/helpers/ntlm_auth/winbind/wb_ntlm_auth.c
2 diff -c squid/helpers/ntlm_auth/winbind/wb_ntlm_auth.c:1.1.2.9 squid/helpers/ntlm_auth/winbind/wb_ntlm_auth.c:1.1.2.10
3 *** squid/helpers/ntlm_auth/winbind/wb_ntlm_auth.c:1.1.2.9      Thu Jun 30 12:50:56 2005
4 --- squid/helpers/ntlm_auth/winbind/wb_ntlm_auth.c      Sat Jul  9 02:42:49 2005
5 ***************
6 *** 117,138 ****
7       if (have_urandom == DONTKNOW) {
8         int result = 0;
9         struct stat st;
10         result = stat(ENTROPY_SOURCE, &st);
11         if (result != 0 || !(S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode))) {
12             debug("Entropy source " ENTROPY_SOURCE " is unavailable\n");
13             have_urandom = NO;
14 !       }
15 !       if ((urandom_file = fopen(ENTROPY_SOURCE, "r")) == NULL) {
16 !           unsigned int seed;
17 !           struct timeval t;
18             warn("Can't open entropy source " ENTROPY_SOURCE "\n");
19             have_urandom = NO;
20 !           gettimeofday(&t, NULL);
21 !           seed = squid_random() * getpid() * t.tv_sec * t.tv_usec;
22 !           squid_srandom(seed);
23 !       } else {
24             have_urandom = YES;
25 -       }
26       }
27   }
28   
29 --- 117,136 ----
30       if (have_urandom == DONTKNOW) {
31         int result = 0;
32         struct stat st;
33 +       unsigned int seed;
34 +       struct timeval t;
35 +       gettimeofday(&t, NULL);
36 +       seed = squid_random() * getpid() * t.tv_sec * t.tv_usec;
37 +       squid_srandom(seed);
38         result = stat(ENTROPY_SOURCE, &st);
39         if (result != 0 || !(S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode))) {
40             debug("Entropy source " ENTROPY_SOURCE " is unavailable\n");
41             have_urandom = NO;
42 !       } else if ((urandom_file = fopen(ENTROPY_SOURCE, "r")) == NULL) {
43             warn("Can't open entropy source " ENTROPY_SOURCE "\n");
44             have_urandom = NO;
45 !       } else
46             have_urandom = YES;
47       }
48   }
49   
50 ***************
51 *** 349,355 ****
52       domain = strdup(response.data.domain_name);
53       uc(domain);
54   
55 !     warn("target domain is %s\n", domain);
56       return domain;
57   }
58   
59 --- 347,353 ----
60       domain = strdup(response.data.domain_name);
61       uc(domain);
62   
63 !     debug("target domain is %s\n", domain);
64       return domain;
65   }
66   
This page took 0.034251 seconds and 3 git commands to generate.