]> code.citadel.org Git - citadel.git/blobdiff - citadel/server.h
* more merges
[citadel.git] / citadel / server.h
index 757858aad2d7e26065ff81be201d4f799ef0e9c3..bfb95ccba49bfb391d78ba3f48efa87786df422e 100644 (file)
@@ -58,11 +58,12 @@ struct CitContext {
        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;
@@ -81,13 +82,15 @@ struct CitContext {
        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;
 
@@ -97,12 +100,14 @@ struct CitContext {
 
        /* 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;
@@ -145,9 +150,9 @@ struct ChatLine {
        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];
 };
 
 /*
@@ -169,6 +174,7 @@ enum {
        S_SUPPMSGMAIN,
        S_I_WANNA_SELECT,
        S_CONFIG,
+       S_WORKER_LIST,
        MAX_SEMAPHORES
 };
 
@@ -329,6 +335,7 @@ enum {
 struct ServiceFunctionHook {
        struct ServiceFunctionHook *next;
        int tcp_port;
+       char *sockpath;
        void (*h_greeting_function) (void) ;
        void (*h_command_function) (void) ;
        int msock;
@@ -364,6 +371,7 @@ struct SuppMsgInfo {
        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 */
 };
 
@@ -413,7 +421,7 @@ struct ser_ret {
 
 
 /* Preferred field order */
-/*               *********                     Important fields */
-/*                        ****************     Semi-important fields */
+/*               **********                    Important fields */
+/*                         ***************     Semi-important fields */
 /*                                        *    Message text (MUST be last) */
-#define FORDER "IPTAONHRDBCEFGJKLQSUVWXYZM"
+#define FORDER "IPTAFONHRDBCEGJKLQSUVWXYZM"