Single-byte I/O for keytab reads

Ken Raeburn raeburn at MIT.EDU
Thu Jun 27 18:48:00 EDT 2002

Sam Hartman <hartmans at MIT.EDU> writes:

> I  would think that using unbuffered IO is fine provided that you read
> in large chunks.

Unless you do it in fairly small chunks for use by the immediately
following code -- e.g., all of one keytab entry's fixed data, and a
minimal amount of variable-sized data -- you'd probably have to
introduce a layer of buffer management code similar to stdio.  Simply
giving stdio a buffer we control is probably simplest by far.

More information about the krbdev mailing list