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 */
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__ */