4 * Copyright 1990,1991 by the Massachusetts Institute of Technology
5 * For distribution and copying rights, see the file "mit-copyright.h"
12 #include "linked_list.h"
13 #include <afsconfig.h>
21 void aklog ARGS((int, char *[]));
24 * If we have krb.h, use the definition of CREDENTIAL from there. Otherwise,
25 * inline it. When we inline it we're using the inline definition from the
26 * Heimdal sources (since Heimdal doesn't include a definition of struct
27 * credentials with the sources
30 #ifdef HAVE_KERBEROSIV_KRB_H
31 #include <kerberosIV/krb.h>
32 #else /* HAVE_KERBEROSIV_KRB_H */
35 #define MAX_KTXT_LEN 1250
36 #endif /* MAX_KTXT_LEN */
51 #define u_int32_t uint32_t
56 unsigned char dat[MAX_KTXT_LEN];
61 char service[ANAME_SZ];
62 char instance[INST_SZ];
67 struct ktext ticket_st;
73 typedef struct credentials CREDENTIALS;
74 #endif /* ! HAVE_KERBEROSIV_KRB_H */
78 * Complete server info for one cell.
80 * Normally this is defined in afs/cellconfig.h, but the Windows header
81 * files and API don't use this structure. So, I'll include it here so
82 * I don't have to rewrite large chunks of code.
84 #define MAXCELLCHARS 64
85 #define MAXHOSTCHARS 64
86 #define MAXHOSTSPERCELL 8
89 char name[MAXCELLCHARS]; /* Cell name */
90 short numServers; /* Num active servers for the cell*/
91 short flags; /* useful flags */
92 struct sockaddr_in hostAddr[MAXHOSTSPERCELL];
93 /* IP addresses for cell's servers*/
94 char hostName[MAXHOSTSPERCELL][MAXHOSTCHARS];
95 /* Names for cell's servers */
96 char *linkedCell; /* Linked cell name, if any */
99 /* Windows krb5 libraries don't seem to have this call */
100 #define krb5_xfree(p) free(p)
102 /* Title for dialog boxes */
103 #define AKLOG_DIALOG_NAME "aklog"
107 #endif /* __AKLOG_H__ */