sesman : Move global declarations to sesman.h

This commit is contained in:
matt335672 2022-03-03 15:35:13 +00:00
parent 50028e8623
commit fcd991844a
11 changed files with 7 additions and 23 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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);

View File

@ -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);
/******************************************************************************/

View File

@ -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.
*

View File

@ -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;

View File

@ -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)

View File

@ -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);

View File

@ -43,8 +43,6 @@
#define SECS_PER_DAY (24L*3600L)
#endif
extern struct config_sesman *g_cfg; /* in sesman.c */
/******************************************************************************/
/* returns boolean */
long