forked from metaphox/cntlm-gss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
67 lines (54 loc) · 1.72 KB
/
globals.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* CNTLM is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version.
*
* CNTLM is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
* St, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright (c) 2007 David Kubicek
*
*/
/*
* These are globals, mostly run-time options, defined and setup in main module
* proxy.c
*/
#ifndef _GLOBALS_H
#define _GLOBALS_H
#include <pthread.h>
#include "utils.h"
#include "auth.h"
extern int debug;
extern struct auth_s *g_creds; /* global NTLM credentials */
extern int ntlmbasic; /* forward_request() */
extern int serialize;
extern int scanner_plugin;
extern long scanner_plugin_maxsize;
extern plist_t threads_list;
extern pthread_mutex_t threads_mtx;
extern plist_t connection_list;
extern pthread_mutex_t connection_mtx;
extern int parent_count;
extern plist_t parent_list;
/*
* just malloc/free sizeof(proxy_t)
*/
typedef struct {
char hostname[64];
struct auth_s creds;
struct in_addr host;
int port;
int resolved;
} proxy_t;
extern hlist_t header_list; /* forward_request() */
extern hlist_t users_list; /* socks5_thread() */
extern plist_t scanner_agent_list; /* scanner_hook() */
extern plist_t noproxy_list; /* proxy_thread() */
#endif /* _GLOBALS_H */