From 85c538a6e65774cd579b2830ee5c25a3bbddd45f Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 2 Oct 1995 18:52:21 +0000 Subject: [PATCH] Changes to work under OSF/1 - changes of longs to KRB4_32. Remove unused structure declaration. I doubt anyone is using this code anymore, but I forgot to check it in months ago. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6913 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin.old/server/ChangeLog | 4 ++++ src/kadmin.old/server/adm_v4_pwd.c | 31 ++++++------------------------ 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/src/kadmin.old/server/ChangeLog b/src/kadmin.old/server/ChangeLog index 79617a0e6..b488a8194 100644 --- a/src/kadmin.old/server/ChangeLog +++ b/src/kadmin.old/server/ChangeLog @@ -1,3 +1,7 @@ +Mon Oct 2 14:50:57 1995 Ezra Peisach + + * adm_v4_pwd.c: Changes to work under OSF/1. + Wed Sep 06 14:20:57 1995 Chris Provenzano (proven@mit.edu) * adm_adm_func.c, adm_fmt_inq.c, adm_funcs.c, adm_process.c, diff --git a/src/kadmin.old/server/adm_v4_pwd.c b/src/kadmin.old/server/adm_v4_pwd.c index 1e48d0e6c..a96e1b994 100644 --- a/src/kadmin.old/server/adm_v4_pwd.c +++ b/src/kadmin.old/server/adm_v4_pwd.c @@ -38,11 +38,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) */ }; @@ -53,34 +53,15 @@ typedef struct auth_dat AUTH_DAT; 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 */ }; typedef struct msg_dat MSG_DAT; -typedef struct { - char name[ANAME_SZ]; - char instance[INST_SZ]; - - unsigned long key_low; - unsigned long key_high; - unsigned long exp_date; - char exp_date_txt[DATE_SZ]; - unsigned long mod_date; - char mod_date_txt[DATE_SZ]; - unsigned short attributes; - unsigned char max_life; - unsigned char kdc_key_ver; - unsigned char key_version; - - char mod_name[ANAME_SZ]; - char mod_instance[INST_SZ]; - char *old; -} V4_Principal; /* V5 Definitions */ #include "k5-int.h" -- 2.26.2