summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2002-08-08 06:52:55 +0000
committerKen Raeburn <raeburn@mit.edu>2002-08-08 06:52:55 +0000
commitc948c21005a4f09700db2367862d8de32faec8bc (patch)
tree986f84ee5942756184edf93939f474dd87e8120d /src/lib
parentde00ff394c1880319401e113a1ea983bf99cd075 (diff)
downloadkrb5-c948c21005a4f09700db2367862d8de32faec8bc.tar.gz
krb5-c948c21005a4f09700db2367862d8de32faec8bc.tar.xz
krb5-c948c21005a4f09700db2367862d8de32faec8bc.zip
update comments describing file format
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14689 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb4/tf_util.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/krb4/tf_util.c b/src/lib/krb4/tf_util.c
index 85f88d6a1..5ceee51c2 100644
--- a/src/lib/krb4/tf_util.c
+++ b/src/lib/krb4/tf_util.c
@@ -130,15 +130,22 @@ static int tf_gets (char *, int), tf_read (char *, int);
* Where "CREDENTIAL_x" consists of the following fixed-length
* fields from the CREDENTIALS structure (see "krb.h"):
*
- * char service[ANAME_SZ]
- * char instance[INST_SZ]
- * char realm[REALM_SZ]
+ * string service[ANAME_SZ]
+ * string instance[INST_SZ]
+ * string realm[REALM_SZ]
* C_Block session
* int lifetime
* int kvno
* KTEXT_ST ticket_st
* long issue_date
*
+ * Strings are stored NUL-terminated, and read back until a NUL is
+ * found or the indicated number of bytes have been read. (So if you
+ * try to store a string exactly that long or longer, reading them
+ * back will not work.) The KTEXT_ST structure is stored as an int
+ * length followed by that many data bytes. All ints are stored using
+ * host size and byte order for "int".
+ *
* Short description of routines:
*
* tf_init() opens the ticket file and locks it.