From 5d354f8990f99bdbf7af139897c3f630f9d280d7 Mon Sep 17 00:00:00 2001 From: mar Date: Mon, 28 Aug 1989 17:28:27 +0000 Subject: [PATCH] made clname & entity buffers instead of pointers; added client_id separate from users_id; added lists for caching access control --- server/mr_server.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/mr_server.h b/server/mr_server.h index 3ded5827..23d2c49a 100644 --- a/server/mr_server.h +++ b/server/mr_server.h @@ -34,6 +34,8 @@ struct krbname { * This structure holds all per-client information; one of these is * allocated for each active client. */ + +#define NLISTS 100 typedef struct _client { OPERATION pending_op; /* Primary pending operation */ @@ -42,12 +44,14 @@ typedef struct _client { sms_params *args, reply; int id; /* Unique id of client */ struct sockaddr_in haddr; /* IP address of client */ - char *clname; /* Name client authenticated to */ - int users_id; /* SMS internal ID of authenticated user */ + char clname[MAX_K_NAME_SZ];/* Name client authenticated to */ struct krbname kname; /* Parsed version of the above */ + int users_id; /* SMS internal ID of authenticated user */ + int client_id; /* SMS internal ID of client for modby field */ returned_tuples *first, *last; time_t last_time_used; /* Last time connection used */ - char *entity; /* entity on other end of the connection */ + char entity[9]; /* entity on other end of the connection */ + int lists[NLISTS]; /* lists this person is a member of */ } client; /* -- 2.45.1