Use an opaque handle in the kdcpreauth callback
authorGreg Hudson <ghudson@mit.edu>
Wed, 5 Oct 2011 17:27:15 +0000 (17:27 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 5 Oct 2011 17:27:15 +0000 (17:27 +0000)
commit4902dd11b115320f252f73d59a692db9ad7dd600
tree2c05d6c2742979f5829012ec16c1b224e4f8cfc9
parent57a52177feee207d8b3f4bd0fbf7a3d7ee09c070
Use an opaque handle in the kdcpreauth callback

Instead of passing a request and entry to the kdcpreauth get_data
callback, pass an opaque handle.  Remove DB entry and key data
parameters from kdcpreauth methods (but keep the request, since that's
transparent).

The SecurID plugin links against libkdb5 and needs access to the client
DB entry.  Rather than continue to pass a DB entry to kdcpreauth
methods, add a get_data callback to get the client DB entry for the few
plugins which might need it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25300 dc483132-0cff-0310-8789-dd5450dbe970
17 files changed:
src/include/fast_factor.h
src/include/krb5/krb5.hin
src/include/krb5/preauth_plugin.h
src/kdc/do_as_req.c
src/kdc/fast_util.c
src/kdc/kdc_preauth.c
src/kdc/kdc_preauth_ec.c
src/kdc/kdc_util.h
src/lib/krb5/asn.1/krb5_decode_kdc.c
src/lib/krb5/krb/kfree.c
src/plugins/preauth/cksum_body/cksum_body_main.c
src/plugins/preauth/fast_factor.h [deleted file]
src/plugins/preauth/pkinit/deps
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