4 * Copyright 1990,1991 by the Massachusetts Institute of Technology
5 * For distribution and copying rights, see the file "mit-copyright.h"
11 #if !defined(lint) && !defined(SABER)
12 static char *rcsid_aklog_h = "$Id$";
13 #endif /* lint || SABER */
16 #include "linked_list.h"
17 #include <afsconfig.h>
25 void aklog ARGS((int, char *[]));
28 * If we have krb.h, use the definition of CREDENTIAL from there. Otherwise,
29 * inline it. When we inline it we're using the inline definition from the
30 * Heimdal sources (since Heimdal doesn't include a definition of struct
31 * credentials with the sources
34 #ifdef HAVE_KERBEROSIV_KRB_H
35 #include <kerberosIV/krb.h>
36 #else /* HAVE_KERBEROSIV_KRB_H */
39 #define MAX_KTXT_LEN 1250
40 #endif /* MAX_KTXT_LEN */
55 #define u_int32_t uint32_t
60 unsigned char dat[MAX_KTXT_LEN];
65 char service[ANAME_SZ];
66 char instance[INST_SZ];
71 struct ktext ticket_st;
77 typedef struct credentials CREDENTIALS;
78 #endif /* ! HAVE_KERBEROSIV_KRB_H */
82 * Complete server info for one cell.
84 * Normally this is defined in afs/cellconfig.h, but the Windows header
85 * files and API don't use this structure. So, I'll include it here so
86 * I don't have to rewrite large chunks of code.
88 #define MAXCELLCHARS 64
89 #define MAXHOSTCHARS 64
90 #define MAXHOSTSPERCELL 8
93 char name[MAXCELLCHARS]; /* Cell name */
94 short numServers; /* Num active servers for the cell*/
95 short flags; /* useful flags */
96 struct sockaddr_in hostAddr[MAXHOSTSPERCELL];
97 /* IP addresses for cell's servers*/
98 char hostName[MAXHOSTSPERCELL][MAXHOSTCHARS];
99 /* Names for cell's servers */
100 char *linkedCell; /* Linked cell name, if any */
103 /* Windows krb5 libraries don't seem to have this call */
104 #define krb5_xfree(p) free(p)
106 /* Title for dialog boxes */
107 #define AKLOG_DIALOG_NAME "aklog"
111 #endif /* __AKLOG_H__ */