summaryrefslogtreecommitdiffstats
path: root/src/include/krb5/preauth_plugin.h
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-10-03 19:14:05 +0000
committerGreg Hudson <ghudson@mit.edu>2011-10-03 19:14:05 +0000
commit1329c7742c951596efbf06186828a14155194993 (patch)
treefba87b0a350a2b71a6b1f0912ca2b1f563cfce90 /src/include/krb5/preauth_plugin.h
parente10f8035338e23009c042ef2fd188f351794b43e (diff)
downloadkrb5-1329c7742c951596efbf06186828a14155194993.tar.gz
krb5-1329c7742c951596efbf06186828a14155194993.tar.xz
krb5-1329c7742c951596efbf06186828a14155194993.zip
Make kdcpreauth verify respond via callback
From npmccallum@redhat.com with changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25294 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5/preauth_plugin.h')
-rw-r--r--src/include/krb5/preauth_plugin.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/include/krb5/preauth_plugin.h b/src/include/krb5/preauth_plugin.h
index d376098b37..c620d6cdb4 100644
--- a/src/include/krb5/preauth_plugin.h
+++ b/src/include/krb5/preauth_plugin.h
@@ -419,7 +419,13 @@ typedef krb5_error_code
* per-request module data for consumption by the return_fn or free_modreq_fn
* below.
*/
-typedef krb5_error_code
+typedef void
+(*krb5_kdcpreauth_verify_respond_fn)(void *arg, krb5_error_code code,
+ krb5_kdcpreauth_modreq modreq,
+ krb5_data *e_data,
+ krb5_authdata **authz_data);
+
+typedef void
(*krb5_kdcpreauth_verify_fn)(krb5_context context,
struct _krb5_db_entry_new *client,
krb5_data *req_pkt, krb5_kdc_req *request,
@@ -427,9 +433,8 @@ typedef krb5_error_code
krb5_pa_data *data,
krb5_kdcpreauth_get_data_fn get_data,
krb5_kdcpreauth_moddata moddata,
- krb5_kdcpreauth_modreq *modreq_out,
- krb5_data **e_data_out,
- krb5_authdata ***authz_data_out);
+ krb5_kdcpreauth_verify_respond_fn respond,
+ void *arg);
/*
* Optional: generate preauthentication response data to send to the client as