[31485] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Zero-length entry in a keytab: why?!

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Sep 17 17:06:59 2009

From: Greg Hudson <ghudson@mit.edu>
To: "kerberos@noopy.org" <kerberos@noopy.org>
In-Reply-To: <cba4e37e0909171003m1afdda2ekb97031cc6758ad26@mail.gmail.com>
Date: Thu, 17 Sep 2009 17:05:31 -0400
Message-Id: <1253221531.9347.47.camel@ray>
Mime-Version: 1.0
Cc: "kerberos@mit.edu" <kerberos@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On Thu, 2009-09-17 at 13:03 -0400, kerberos@noopy.org wrote:
> Why might the entry length be zero?  And if the zero does indeed
> represent a hole in the keytab, how many bytes do I have to read to
> skip the hole and move to the next entry?

By my reading of the MIT krb5 code, you can treat a zero-value length
entry as the end of the keytab.  (I wasn't able to figure out any normal
sequence of events which would lead to such an entry in our code base,
but I didn't look too hard.)


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post