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