]> git.ipfire.org Git - thirdparty/krb5.git/commit
Add KCM_OP_GET_CRED_LIST for faster iteration 1165/head
authorPavel Březina <pbrezina@redhat.com>
Thu, 11 Feb 2021 14:33:10 +0000 (15:33 +0100)
committerGreg Hudson <ghudson@mit.edu>
Mon, 22 Mar 2021 06:10:48 +0000 (02:10 -0400)
commit81bdb47d8ded390263d8ee48f71d5c312b4f1736
tree6a634c81b12635fe63e38b40e5b92c9596f8c8f4
parent926ab71da02b5b44f1ebd83977b31c653a556a92
Add KCM_OP_GET_CRED_LIST for faster iteration

For large caches, one IPC operation per credential dominates the cost
of iteration.  Instead transfer the whole list of credentials to the
client in one IPC operation.

Add optional support for the new opcode to the test KCM server to
allow testing of the main and fallback code paths.

[ghudson@mit.edu: fixed memory leaks and potential memory errors;
adjusted code style and comments; rewrote commit message; added
kcmserver.py support and tests]

ticket: 8990 (new)
src/include/kcm.h
src/lib/krb5/ccache/cc_kcm.c
src/tests/kcmserver.py
src/tests/t_ccache.py