sesman : Move global declarations to sesman.h
This commit is contained in:
parent
50028e8623
commit
fcd991844a
@ -31,8 +31,6 @@
|
||||
#include "sesman.h"
|
||||
#include "string_calls.h"
|
||||
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
/******************************************************************************/
|
||||
int
|
||||
access_login_allowed(const char *user)
|
||||
|
@ -36,9 +36,6 @@
|
||||
#include "ssl_calls.h"
|
||||
#include "string_calls.h"
|
||||
|
||||
extern unsigned char g_fixedkey[8]; /* in sesman.c */
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
/******************************************************************************/
|
||||
int
|
||||
env_check_password_file(const char *filename, const char *passwd)
|
||||
|
@ -33,8 +33,6 @@
|
||||
|
||||
#include "sesman.h"
|
||||
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
/******************************************************************************/
|
||||
enum SCP_SERVER_STATES_E
|
||||
scp_process(struct trans *t, struct SCP_SESSION *sdata)
|
||||
|
@ -30,8 +30,6 @@
|
||||
|
||||
#include "sesman.h"
|
||||
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
/******************************************************************************/
|
||||
enum SCP_SERVER_STATES_E
|
||||
scp_v0_process(struct trans *t, struct SCP_SESSION *s)
|
||||
|
@ -33,8 +33,6 @@
|
||||
//#include "libscp_types.h"
|
||||
#include "libscp.h"
|
||||
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
static void
|
||||
parseCommonStates(enum SCP_SERVER_STATES_E e, const char *f);
|
||||
|
||||
|
@ -32,8 +32,6 @@
|
||||
|
||||
#include "libscp.h"
|
||||
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
static void parseCommonStates(enum SCP_SERVER_STATES_E e, const char *f);
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -41,6 +41,13 @@
|
||||
|
||||
#include "libscp.h"
|
||||
|
||||
/* Globals */
|
||||
extern struct config_sesman *g_cfg;
|
||||
extern unsigned char g_fixedkey[8];
|
||||
extern tintptr g_term_event;
|
||||
extern int g_pid;
|
||||
|
||||
|
||||
/*
|
||||
* Close all file descriptors used by sesman.
|
||||
*
|
||||
|
@ -47,8 +47,6 @@
|
||||
#define PR_SET_NO_NEW_PRIVS 38
|
||||
#endif
|
||||
|
||||
extern unsigned char g_fixedkey[8];
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
struct session_chain *g_sessions;
|
||||
int g_session_count;
|
||||
|
||||
|
@ -32,10 +32,6 @@
|
||||
|
||||
#include "sesman.h"
|
||||
|
||||
extern int g_pid;
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
extern tbus g_term_event;
|
||||
|
||||
/******************************************************************************/
|
||||
void
|
||||
sig_sesman_shutdown(int sig)
|
||||
|
@ -42,8 +42,6 @@
|
||||
#define SECS_PER_DAY (24L*3600L)
|
||||
#endif
|
||||
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
static int
|
||||
auth_crypt_pwd(const char *pwd, const char *pln, char *crp);
|
||||
|
||||
|
@ -43,8 +43,6 @@
|
||||
#define SECS_PER_DAY (24L*3600L)
|
||||
#endif
|
||||
|
||||
extern struct config_sesman *g_cfg; /* in sesman.c */
|
||||
|
||||
/******************************************************************************/
|
||||
/* returns boolean */
|
||||
long
|
||||
|
Loading…
Reference in New Issue
Block a user