source: squid-ssl/trunk/fuentes/src/icmp/globals.cc @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 21 months ago

Initial release

File size: 3.1 KB
Line 
1#include "squid.h"
2/*
3 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
4 *
5 * Squid software is distributed under GPLv2+ license and includes
6 * contributions from numerous individuals and organizations.
7 * Please see the COPYING and CONTRIBUTORS files for details.
8 */
9
10
11#include "acl/AclDenyInfoList.h"
12#include "CacheDigest.h"
13#include "defines.h"
14#include "hash.h"
15#include "IoStats.h"
16#include "rfc2181.h"
17#include "SBuf.h"
18
19char *ConfigFile = NULL;
20char tmp_error_buf[ERROR_BUF_SZ];
21char ThisCache[RFC2181_MAXHOSTNAMELEN << 1];
22char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1];
23char config_input_line[BUFSIZ];
24/// During parsing, the name of the current squid.conf directive being parsed.
25const char *cfg_directive = NULL;
26const char *DefaultConfigFile = DEFAULT_CONFIG_FILE;
27const char *cfg_filename = NULL;
28const char *dash_str = "-";
29const char *null_string = "";
30const char *version_string = VERSION;
31const char *appname_string = PACKAGE;
32char const *visible_appname_string = NULL;
33int Biggest_FD = -1;
34int Number_FD = 0;
35int Opening_FD = 0;
36int NDnsServersAlloc = 0;
37int RESERVED_FD;
38int Squid_MaxFD = SQUID_MAXFD;
39int config_lineno = 0;
40int opt_reuseaddr = 1;
41int neighbors_do_private_keys = 1;
42int opt_catch_signals = 1;
43int opt_foreground_rebuild = 0;
44char *opt_forwarded_for = NULL;
45int opt_reload_hit_only = 0;
46
47int opt_udp_hit_obj = 0;
48int opt_create_swap_dirs = 0;
49int opt_store_doublecheck = 0;
50int syslog_enable = 0;
51int DnsSocketA = -1;
52int DnsSocketB = -1;
53int n_disk_objects = 0;
54IoStats IOStats;
55
56AclDenyInfoList *DenyInfoList = NULL;
57
58struct timeval squid_start;
59int starting_up = 1;
60int shutting_down = 0;
61int reconfiguring = 0;
62time_t hit_only_mode_until = 0;
63double request_failure_ratio = 0.0;
64int store_hash_buckets = 0;
65hash_table *store_table = NULL;
66int hot_obj_count = 0;
67int CacheDigestHashFuncCount = 4;
68CacheDigest *store_digest = NULL;
69const char *StoreDigestFileName = "store_digest";
70const char *StoreDigestMimeStr = "application/cache-digest";
71
72const char *MultipartMsgBoundaryStr = "Unique-Squid-Separator";
73#if USE_HTTP_VIOLATIONS
74int refresh_nocache_hack = 0;
75#endif
76
77int store_open_disk_fd = 0;
78int store_swap_low = 0;
79int store_swap_high = 0;
80size_t store_pages_max = 0;
81int64_t store_maxobjsize = 0;
82hash_table *proxy_auth_username_cache = NULL;
83int incoming_sockets_accepted;
84#if _SQUID_WINDOWS_
85unsigned int WIN32_Socks_initialized = 0;
86#endif
87#if _SQUID_WINDOWS_
88unsigned int WIN32_OS_version = 0;
89char *WIN32_OS_string = NULL;
90char *WIN32_Command_Line = NULL;
91char *WIN32_Service_Command_Line = NULL;
92unsigned int WIN32_run_mode = _WIN_SQUID_RUN_MODE_INTERACTIVE;
93#endif
94
95int ssl_ex_index_server = -1;
96int ssl_ctx_ex_index_dont_verify_domain = -1;
97int ssl_ex_index_cert_error_check = -1;
98int ssl_ex_index_ssl_error_detail = -1;
99int ssl_ex_index_ssl_peeked_cert = -1;
100int ssl_ex_index_ssl_errors = -1;
101int ssl_ex_index_ssl_cert_chain = -1;
102int ssl_ex_index_ssl_validation_counter = -1;
103
104const char *external_acl_message = NULL;
105int opt_send_signal = -1;
106int opt_no_daemon = 0;
107int opt_parse_cfg_only = 0;
108
109/// current Squid process number (e.g., 4).
110/// Zero for SMP-unaware code and in no-SMP mode.
111int KidIdentifier = 0;
112
113
Note: See TracBrowser for help on using the repository browser.