]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix keytab file format description 427/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 18 Mar 2016 21:50:02 +0000 (17:50 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 22 Mar 2016 17:23:58 +0000 (13:23 -0400)
The key length and count of principal components are 16-bit fields.

ticket: 8385 (new)
target_version: 1.14-next
tags: pullup

doc/formats/keytab_file_format.rst
src/lib/krb5/keytab/kt_file.c

index 92f37331e0593a7a7ff4991510f7c8d70e5053ef..8424d058ff461d2cc954c299e91c2528a4292c00 100644 (file)
@@ -29,12 +29,12 @@ the key entry.  Key entries use the following informal grammar::
         timestamp (32 bits)
         key version (8 bits)
         enctype (16 bits)
-        key length (32 bits)
+        key length (16 bits)
         key contents
         key version (32 bits) [in release 1.14 and later]
 
     principal ::=
-        count of components (32 bits) [includes realm in version 1]
+        count of components (16 bits) [includes realm in version 1]
         realm (data)
         component1 (data)
         component2 (data)
index 03fd4c3b1bbc6440a6631e93f829ab26668555af..6a42f267df7dedc1ac7888bf944863a72eb8bcdf 100644 (file)
@@ -1001,7 +1001,7 @@ const krb5_kt_ops krb5_kt_dfl_ops = {
  * sizeof(krb5_int32) bytes for the timestamp
  * sizeof(krb5_octet) bytes for the key version number
  * sizeof(krb5_int16) bytes for the enctype
- * sizeof(krb5_int32) bytes for the key length, followed by the key
+ * sizeof(krb5_int16) bytes for the key length, followed by the key
  */
 
 #ifndef SEEK_SET