krb5 commit [krb5-1.14]: Fix keytab file format description
Tom Yu
tlyu at mit.edu
Tue Apr 5 23:02:57 EDT 2016
https://github.com/krb5/krb5/commit/552a712cfc2fdd66dffc5b962777157082eb9b95
commit 552a712cfc2fdd66dffc5b962777157082eb9b95
Author: Greg Hudson <ghudson at mit.edu>
Date: Fri Mar 18 17:50:02 2016 -0400
Fix keytab file format description
The key length and count of principal components are 16-bit fields.
(cherry picked from commit 841cabb2bd0275f0aad739fc03aaa2b66a617f68)
ticket: 8385
version_fixed: 1.14.2
status: resolved
tags: -pullup
doc/formats/keytab_file_format.rst | 4 ++--
src/lib/krb5/keytab/kt_file.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/formats/keytab_file_format.rst b/doc/formats/keytab_file_format.rst
index 92f3733..8424d05 100644
--- a/doc/formats/keytab_file_format.rst
+++ b/doc/formats/keytab_file_format.rst
@@ -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)
diff --git a/src/lib/krb5/keytab/kt_file.c b/src/lib/krb5/keytab/kt_file.c
index ace654d..e105a51 100644
--- a/src/lib/krb5/keytab/kt_file.c
+++ b/src/lib/krb5/keytab/kt_file.c
@@ -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
More information about the cvs-krb5
mailing list