X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Ffastcgi.h;h=de02501c03c3163e5a13515a406bc536581d65b2;hb=1ea3789d17aabdbad4ced20594a729bacd4409f6;hp=85dab5737e358592f64d1febebff739501d8cf12;hpb=e3e7914fe2f59765e5f92371329652a02518928c;p=matches%2FMCTX3420.git diff --git a/server/fastcgi.h b/server/fastcgi.h index 85dab57..de02501 100644 --- a/server/fastcgi.h +++ b/server/fastcgi.h @@ -33,6 +33,8 @@ typedef enum StatusCodes { #define FCGI_RECEIVED(x) ((x) & FCGI_PARAM_RECEIVED) #define FCGI_TYPE(x) ((x) & ~(FCGI_PARAM_REQUIRED | FCGI_PARAM_RECEIVED)) +#define CONTROL_KEY_BUFSIZ 41 + typedef struct FCGIValue { const char *key; void *value; @@ -47,13 +49,15 @@ typedef struct /**The time of last valid user access possessing the control key**/ time_t control_timestamp; /**A SHA-1 hash that is the control key, determining who is logged in**/ - char control_key[41]; + char control_key[CONTROL_KEY_BUFSIZ]; /**The IPv4 address of the logged-in user**/ char control_ip[16]; /**Determines if the user is an admin or not**/ UserType user_type; /**Name of the logged in user**/ char user_name[31]; + /**User directory for the logged in user**/ + char user_dir[BUFSIZ]; /**The name of the current module**/ const char *current_module; /**For debugging purposes?**/