[98] in Kerberos_V5_Development

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

Indexing caches?

bjaspan@ATHENA.MIT.EDU (bjaspan@ATHENA.MIT.EDU)
Thu Jan 18 22:10:07 1990

The sequential scanning function for credential caches is obviously
going to be a linear search.  (At least, I hope this is obvious, as
a faster way isn't obvious to me.)

There is a choice for the retrieve function, however.  It could be a
simple wrapper for the search functions, calling next_cred until it
finds the one it wants and then returning.  But it wouldn't be too
hard to keep indexing information in the krb5_ccache_id (I am already
using the void *data field of the structure as a pointer to another
structure, so I could put it there) which presumably would make
retrieve faster.

I don't know if it's worth it.  Comments?

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