2 #define CONFIG "config.h"
6 #include "shared_globals.h"
8 int global_argc
, multi_argc
= 0;
9 CARGV global_argv
, multi_argv
= NULL
;
10 const char *const Version
= VERSION
;
11 DWORD VLActivationInterval
= 60 * 2; // 2 hours
12 DWORD VLRenewalInterval
= 60 * 24 * 7; // 7 days
13 int_fast8_t DisconnectImmediately
= FALSE
;
14 const char *const cIPv4
= "IPv4";
15 const char *const cIPv6
= "IPv6";
18 int_fast8_t UseMultiplexedRpc
= TRUE
;
19 int_fast8_t UseRpcNDR64
= TRUE
;
20 int_fast8_t UseRpcBTFN
= TRUE
;
24 const char *defaultport
= "1688";
27 KmsResponseParam_t KmsResponseParameters
[MAX_KMSAPPS
];
29 #if !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
30 int_fast8_t IsRestarted
= FALSE
;
31 #endif // !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
33 #if !defined(NO_TIMEOUT) && !__minix__
34 DWORD ServerTimeout
= 30;
35 #endif // !defined(NO_TIMEOUT) && !__minix__
37 #if !defined(NO_LIMIT) && !defined (NO_SOCKETS) && !__minix__
39 uint32_t MaxTasks
= RPC_C_LISTEN_MAX_CALLS_DEFAULT
;
41 uint32_t MaxTasks
= SEM_VALUE_MAX
;
43 #endif // !defined(NO_LIMIT) && !defined (NO_SOCKETS) && !__minix__
47 int_fast8_t logstdout
= 0;
48 #ifndef NO_VERBOSE_LOG
49 int_fast8_t logverbose
= 0;
50 #endif // NO_VERBOSE_LOG
54 int_fast8_t nodaemon
= 0;
55 int_fast8_t InetdMode
= 0;
57 int_fast8_t nodaemon
= 1;
58 int_fast8_t InetdMode
= 1;
61 #ifndef NO_RANDOM_EPID
62 int_fast8_t RandomizationLevel
= 1;
70 #if !defined(NO_LIMIT) && !__minix__
71 #ifndef _WIN32 // Posix
77 #endif // !defined(NO_LIMIT) && !__minix__
81 int_fast8_t IsNTService
= TRUE
;
82 int_fast8_t ServiceShutdown
= FALSE
;
87 #if !defined(_WIN32) && !defined(__CYGWIN__)
88 pthread_mutex_t logmutex
= PTHREAD_MUTEX_INITIALIZER
;
90 CRITICAL_SECTION logmutex
;
91 #endif // !defined(_WIN32) && !defined(__CYGWIN__)