+Fri Jan 26 00:06:50 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * ktutil_funcs.c (ktutil_write_srvtab): Write v4 version
+ properly. Previous code was endien dependent.
+
Mon Dec 25 10:03:15 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* ktutil.c (ktutil_write_v4): Call ktutil_write_srvtab not
/*
* kadmin/ktutil/ktutil_funcs.c
*
- * Copyright 1995 by the Massachusetts Institute of Technology.
+ *(C) Copyright 1995, 1996 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
goto free_pruned;
}
for (lp = pruned; lp; lp = lp->next) {
+ unsigned char kvno;
+ kvno = (unsigned char) lp->entry->vno;
retval = krb5_524_conv_principal(context,
lp->entry->principal,
sname, sinst, srealm);
fwrite(sname, strlen(sname) + 1, 1, fp);
fwrite(sinst, strlen(sinst) + 1, 1, fp);
fwrite(srealm, strlen(srealm) + 1, 1, fp);
- fwrite((char *)&lp->entry->vno, 1, 1, fp);
+ fwrite((char *)&kvno, 1, 1, fp);
fwrite((char *)lp->entry->key.contents,
sizeof (des_cblock), 1, fp);
}