Initial import from FreeBSD RELENG_4:
[dragonfly.git] / crypto / kerberosIV / kadmin / kadm_server.h
1 /* 
2   Copyright (C) 1989 by the Massachusetts Institute of Technology
3
4    Export of this software from the United States of America is assumed
5    to require a specific license from the United States Government.
6    It is the responsibility of any person or organization contemplating
7    export to obtain such a license before exporting.
8
9 WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
10 distribute this software and its documentation for any purpose and
11 without fee is hereby granted, provided that the above copyright
12 notice appear in all copies and that both that copyright notice and
13 this permission notice appear in supporting documentation, and that
14 the name of M.I.T. not be used in advertising or publicity pertaining
15 to distribution of the software without specific, written prior
16 permission.  M.I.T. makes no representations about the suitability of
17 this software for any purpose.  It is provided "as is" without express
18 or implied warranty.
19
20   */
21
22 /* $Id: kadm_server.h,v 1.10 1997/05/11 04:08:26 assar Exp $ */
23
24 /*
25  * Definitions for Kerberos administration server & client
26  */
27
28 #ifndef KADM_SERVER_DEFS
29 #define KADM_SERVER_DEFS
30
31 /*
32  * kadm_server.h
33  * Header file for the fourth attempt at an admin server
34  * Doug Church, December 28, 1989, MIT Project Athena
35  *    ps. Yes that means this code belongs to athena etc...
36  *        as part of our ongoing attempt to copyright all greek names
37  */
38
39 typedef struct {
40   struct sockaddr_in admin_addr;
41   struct sockaddr_in recv_addr;
42   int recv_addr_len;
43   int admin_fd;                 /* our link to clients */
44   char sname[ANAME_SZ];
45   char sinst[INST_SZ];
46   char krbrlm[REALM_SZ];
47   des_cblock master_key;
48   des_cblock session_key;
49   des_key_schedule master_key_schedule;
50   long master_key_version;
51 } Kadm_Server;
52
53 /* the default syslog file */
54 #ifndef KADM_SYSLOG
55 #define KADM_SYSLOG  "/var/log/admin_server.syslog"
56 #endif /* KADM_SYSLOG */
57
58 #ifndef DEFAULT_ACL_DIR
59 #define DEFAULT_ACL_DIR "/var/kerberos"
60 #endif /* DEFAULT_ACL_DIR */
61 #define ADD_ACL_FILE    "/admin_acl.add"
62 #define GET_ACL_FILE    "/admin_acl.get"
63 #define MOD_ACL_FILE    "/admin_acl.mod"
64 #define DEL_ACL_FILE    "/admin_acl.del"
65
66 #endif /* KADM_SERVER_DEFS */