summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-02-03 11:51:47 +0000
committerTheodore Tso <tytso@mit.edu>1995-02-03 11:51:47 +0000
commit21eb851c82fe96d181e5c6cb3cb1d68a55051b5a (patch)
treeec452b0540eab41696c51ee16d873d47cd338f8e
parent66ced1137f57f4fa1b68cc18dce5a2ff6c74e5c4 (diff)
downloadkrb5-21eb851c82fe96d181e5c6cb3cb1d68a55051b5a.tar.gz
krb5-21eb851c82fe96d181e5c6cb3cb1d68a55051b5a.tar.xz
krb5-21eb851c82fe96d181e5c6cb3cb1d68a55051b5a.zip
Add changes to make this work on Alpha's. (From Ezra)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4892 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/include/kerberosIV/ChangeLog4
-rw-r--r--src/include/kerberosIV/krb.h20
2 files changed, 17 insertions, 7 deletions
diff --git a/src/include/kerberosIV/ChangeLog b/src/include/kerberosIV/ChangeLog
index eac4f2566b..b0c1ce0df8 100644
--- a/src/include/kerberosIV/ChangeLog
+++ b/src/include/kerberosIV/ChangeLog
@@ -1,3 +1,7 @@
+Fri Feb 3 06:50:46 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * krb.h: Add changes to make this work on Alpha's.
+
Wed Jan 25 19:25:02 1995 Mark Eichin (eichin@cygnus.com)
* kadm.h: add DEL_ENT and DEL_ACL for CNS V4 delete support.
diff --git a/src/include/kerberosIV/krb.h b/src/include/kerberosIV/krb.h
index e4e3751bd9..4da58a1a11 100644
--- a/src/include/kerberosIV/krb.h
+++ b/src/include/kerberosIV/krb.h
@@ -45,6 +45,12 @@ extern char *krb_err_txt[MAX_KRB_ERRORS];
#define KSUCCESS 0
#define KFAILURE 255
+#ifndef __alpha
+#define KRB4_32 long
+#else
+#define KRB4_32 int
+#endif
+
#ifdef NO_UIDGID_T
typedef unsigned short uid_t;
typedef unsigned short gid_t;
@@ -139,11 +145,11 @@ struct auth_dat {
char pname[ANAME_SZ]; /* Principal's name */
char pinst[INST_SZ]; /* His Instance */
char prealm[REALM_SZ]; /* His Realm */
- unsigned long checksum; /* Data checksum (opt) */
+ unsigned KRB4_32 checksum; /* Data checksum (opt) */
C_Block session; /* Session Key */
int life; /* Life of ticket */
- unsigned long time_sec; /* Time ticket issued */
- unsigned long address; /* Address in ticket */
+ unsigned KRB4_32 time_sec; /* Time ticket issued */
+ unsigned KRB4_32 address; /* Address in ticket */
KTEXT_ST reply; /* Auth reply (opt) */
};
@@ -159,7 +165,7 @@ struct credentials {
int lifetime; /* Lifetime */
int kvno; /* Key version number */
KTEXT_ST ticket_st; /* The ticket itself */
- long issue_date; /* The issue time */
+ KRB4_32 issue_date; /* The issue time */
char pname[ANAME_SZ]; /* Principal's name */
char pinst[INST_SZ]; /* Principal's instance */
};
@@ -170,10 +176,10 @@ typedef struct credentials CREDENTIALS;
struct msg_dat {
unsigned char *app_data; /* pointer to appl data */
- unsigned long app_length; /* length of appl data */
- unsigned long hash; /* hash to lookup replay */
+ unsigned KRB4_32 app_length; /* length of appl data */
+ unsigned KRB4_32 hash; /* hash to lookup replay */
int swap; /* swap bytes? */
- long time_sec; /* msg timestamp seconds */
+ KRB4_32 time_sec; /* msg timestamp seconds */
unsigned char time_5ms; /* msg timestamp 5ms units */
};