summaryrefslogtreecommitdiffstats
path: root/src/kdc/kdc_util.h
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-05-24 02:07:18 -0400
committerGreg Hudson <ghudson@mit.edu>2012-05-30 00:26:10 -0400
commit231cd500ed85897b69e598bb7bc7818dcc98ccb4 (patch)
tree16201e35036b0f46d1ecbe59e472fc7a6ec34822 /src/kdc/kdc_util.h
parent2dac078c6094544feac6a4312d15321e06e54c1b (diff)
downloadkrb5-231cd500ed85897b69e598bb7bc7818dcc98ccb4.tar.gz
krb5-231cd500ed85897b69e598bb7bc7818dcc98ccb4.tar.xz
krb5-231cd500ed85897b69e598bb7bc7818dcc98ccb4.zip
Use a hash table in the KDC lookaside cache
Add a hash table to kdc/replay.c for fast lookup of incoming packets. Continue to keep a time-ordered linked list of all entries for fast expiry of stale entries. The preprocessor constant LOOKASIDE_HASH_SIZE can be used to change the size of the hash table.
Diffstat (limited to 'src/kdc/kdc_util.h')
-rw-r--r--src/kdc/kdc_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h
index 982508a88..55aafaeb7 100644
--- a/src/kdc/kdc_util.h
+++ b/src/kdc/kdc_util.h
@@ -231,6 +231,7 @@ handle_authdata (krb5_context context,
krb5_enc_tkt_part *enc_tkt_reply);
/* replay.c */
+krb5_error_code kdc_init_lookaside(krb5_context context);
krb5_boolean kdc_check_lookaside (krb5_data *, krb5_data **);
void kdc_insert_lookaside (krb5_data *, krb5_data *);
void kdc_remove_lookaside (krb5_context kcontext, krb5_data *);