6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
9 * Revision 1.8 1988-01-14 13:12:06 mar
10 * added definition of ARGLEN
12 * Revision 1.7 87/07/29 16:03:30 wesommer
13 * Added last_time_used field to client structure.
15 * Revision 1.6 87/07/14 00:36:40 wesommer
16 * Added debugging options.
18 * Revision 1.5 87/06/30 20:05:14 wesommer
19 * Added parsed kerberos principal name.
21 * Revision 1.4 87/06/21 16:42:07 wesommer
22 * Performance work, rearrangement of include files.
24 * Revision 1.3 87/06/03 16:07:59 wesommer
27 * Revision 1.2 87/06/01 03:35:10 wesommer
28 * added stuff for authentication.
32 #include <sys/types.h>
34 #include <sys/socket.h>
35 #include <netinet/in.h>
36 #include "sms_proto.h"
39 typedef struct returned_tuples {
40 struct returned_tuples *next;
46 * This should be in the kerberos header file.
56 * This structure holds all per-client information; one of these is
57 * allocated for each active client.
60 typedef struct _client {
61 OPERATION pending_op; /* Primary pending operation */
62 CONNECTION con; /* Connection to the client */
63 int state; /* XXX this is really superfluous and should */
65 int action; /* what action is pending? */
66 sms_params *args, reply;
67 int id; /* Unique id of client */
68 struct sockaddr_in haddr; /* IP address of client */
69 char *clname; /* Name client authenticated to */
70 struct krbname kname; /* Parsed version of the above */
71 returned_tuples *first, *last;
72 time_t last_time_used; /* Last time connection used */
90 extern char *krb_realm;
98 #define LOG_CONNECT 0x0001
99 #define LOG_REQUESTS 0x0002
100 #define LOG_ARGS 0x0004
101 #define LOG_RESP 0x0008
102 #define LOG_RES 0x0010
105 /* max length of query argument allowed */