Use type-safe callbacks in preauth interface
authorGreg Hudson <ghudson@mit.edu>
Thu, 6 Oct 2011 16:18:56 +0000 (16:18 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 6 Oct 2011 16:18:56 +0000 (16:18 +0000)
commit7003d3dbdfd0a7f4f6843068affb290c844ccb65
tree2b31a19ce468926f02f471597b68cb60d3bffe82
parent72dc9d3ca51e6b54f088f7dc6a68c38504cde1d9
Use type-safe callbacks in preauth interface

Replace the generic get_data functions in clpreauth and kdcpreauth
with structures containing callback functions.  Each structure has a
minor version number to allow adding new callbacks.

For simplicity, the new fast armor key callbacks return aliases, which
is how we would supply the armor key as a function parameter.  The new
client keys callback is paired with a free_keys callback to reduce the
amount of cleanup code needed in modules.

ticket: 6971

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25315 dc483132-0cff-0310-8789-dd5450dbe970
src/include/fast_factor.h
src/include/krb5/preauth_plugin.h
src/kdc/kdc_preauth.c
src/kdc/kdc_preauth_ec.c
src/lib/krb5/krb/preauth2.c
src/lib/krb5/krb/preauth_ec.c
src/plugins/preauth/cksum_body/cksum_body_main.c
src/plugins/preauth/pkinit/pkinit_clnt.c
src/plugins/preauth/pkinit/pkinit_srv.c
src/plugins/preauth/securid_sam2/securid_sam2_main.c
src/plugins/preauth/wpse/wpse_main.c