int state; /* thread state (see CON_ values below) */
int kill_me; /* Set to nonzero to flag for termination */
- char curr_user[32]; /* name of current user */
+ char curr_user[USERNAME_SIZE]; /* name of current user */
int logged_in; /* logged in */
int internal_pgm; /* authenticated as internal program */
char temp[32]; /* temp file name */
int nologin; /* not allowed to log in */
+ int is_local_socket; /* set to 1 if client is on unix domain sock */
char net_node[32]; /* Is the client another Citadel server? */
int client_socket;
char cs_clientname[32]; /* name of client software */
char cs_host[26]; /* host logged in from */
+ /* Beginning of cryptography - session nonce */
+ char cs_nonce[NONCE_SIZE]; /* The nonce for this session's next auth transaction */
+
FILE *download_fp; /* Fields relating to file transfer */
FILE *upload_fp;
- char upl_file[256];
- char upl_path[256];
- char upl_comment[256];
- char upl_filedir[256];
- char chat_room[20]; /* The chat room */
+ char upl_file[SIZ];
+ char upl_path[SIZ];
+ char upl_comment[SIZ];
+ char upl_filedir[SIZ];
char dl_is_net;
char upload_type;
/* A linked list of all express messages sent to us. */
struct ExpressMessage *FirstExpressMessage;
+ int disable_exp; /* Set to 1 to disable incoming pages */
/* Masquerade... */
- char fake_username[32]; /* Fake username <bc> */
- char fake_postname[32]; /* Fake postname <bc> */
+ char fake_username[USERNAME_SIZE]; /* Fake username <bc> */
+ char fake_postname[USERNAME_SIZE]; /* Fake postname <bc> */
char fake_hostname[25]; /* Name of the fake hostname <bc> */
char fake_roomname[ROOMNAMELEN]; /* Name of the fake room <bc> */
+
/* Dynamically allocated session data */
struct CtdlSessData *FirstSessData;
struct ChatLine *next;
int chat_seq;
time_t chat_time;
- char chat_text[256];
- char chat_room[20];
- char chat_username[32];
+ char chat_text[SIZ];
+ char chat_username[USERNAME_SIZE];
+ char chat_room[ROOMNAMELEN];
};
/*
S_SUPPMSGMAIN,
S_I_WANNA_SELECT,
S_CONFIG,
+ S_WORKER_LIST,
MAX_SEMAPHORES
};
struct ServiceFunctionHook {
struct ServiceFunctionHook *next;
int tcp_port;
+ char *sockpath;
void (*h_greeting_function) (void) ;
void (*h_command_function) (void) ;
int msock;
long smi_msgnum; /* Message number in *local* message base */
int smi_refcount; /* Number of rooms which point to this msg */
char smi_content_type[64];
+ char smi_mod; /* Moderated to what level? */
/* more stuff will be added to this record in the future */
};
/* Preferred field order */
-/* ********* Important fields */
-/* **************** Semi-important fields */
+/* ********** Important fields */
+/* *************** Semi-important fields */
/* * Message text (MUST be last) */
-#define FORDER "IPTAONHRDBCEFGJKLQSUVWXYZM"
+#define FORDER "IPTAFONHRDBCEGJKLQSUVWXYZM"