Moved few config parameters to make lib usage possible.
This commit is contained in:
parent
e9e3811657
commit
daf99058e3
3 changed files with 13 additions and 9 deletions
|
@ -35,6 +35,15 @@
|
||||||
#include "utils.h" /* for cp */
|
#include "utils.h" /* for cp */
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
|
|
||||||
|
/* If nonzero, write log entries to a separate file. */
|
||||||
|
bool use_logfile = false;
|
||||||
|
|
||||||
|
/* If nonzero, use syslog instead of stderr in no-detach mode. */
|
||||||
|
bool use_syslog = false;
|
||||||
|
|
||||||
|
/* If nonzero, use null ciphers and skip all key exchanges. */
|
||||||
|
bool bypass_security = false;
|
||||||
|
|
||||||
splay_tree_t *config_tree;
|
splay_tree_t *config_tree;
|
||||||
|
|
||||||
int pinginterval = 0; /* seconds between pings */
|
int pinginterval = 0; /* seconds between pings */
|
||||||
|
|
|
@ -34,6 +34,10 @@ typedef struct config_t {
|
||||||
#include "subnet.h"
|
#include "subnet.h"
|
||||||
|
|
||||||
extern splay_tree_t *config_tree;
|
extern splay_tree_t *config_tree;
|
||||||
|
extern bool use_logfile;
|
||||||
|
extern bool use_syslog;
|
||||||
|
extern bool bypass_security;
|
||||||
|
|
||||||
|
|
||||||
extern int pinginterval;
|
extern int pinginterval;
|
||||||
extern int pingtimeout;
|
extern int pingtimeout;
|
||||||
|
|
|
@ -66,9 +66,6 @@ static bool show_help = false;
|
||||||
/* If nonzero, print the version on standard output and exit. */
|
/* If nonzero, print the version on standard output and exit. */
|
||||||
static bool show_version = false;
|
static bool show_version = false;
|
||||||
|
|
||||||
/* If nonzero, use null ciphers and skip all key exchanges. */
|
|
||||||
bool bypass_security = false;
|
|
||||||
|
|
||||||
#ifdef HAVE_MLOCKALL
|
#ifdef HAVE_MLOCKALL
|
||||||
/* If nonzero, disable swapping for this process. */
|
/* If nonzero, disable swapping for this process. */
|
||||||
static bool do_mlock = false;
|
static bool do_mlock = false;
|
||||||
|
@ -82,12 +79,6 @@ static bool do_chroot = false;
|
||||||
static const char *switchuser = NULL;
|
static const char *switchuser = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If nonzero, write log entries to a separate file. */
|
|
||||||
bool use_logfile = false;
|
|
||||||
|
|
||||||
/* If nonzero, use syslog instead of stderr in no-detach mode. */
|
|
||||||
bool use_syslog = false;
|
|
||||||
|
|
||||||
char **g_argv; /* a copy of the cmdline arguments */
|
char **g_argv; /* a copy of the cmdline arguments */
|
||||||
|
|
||||||
static int status = 1;
|
static int status = 1;
|
||||||
|
|
Loading…
Reference in a new issue