summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2012-10-23 15:08:26 -0400
committerGreg Hudson <ghudson@mit.edu>2012-10-23 22:27:45 -0400
commit83b4ecd20e50ad330cd761977d5dadefe30a785b (patch)
treee00fb41319db6e2f3ead22ec56d416f2f038166c /src/include
parent0e6cd4de33c401b2911a5001dc476d11bfb969a3 (diff)
downloadkrb5-83b4ecd20e50ad330cd761977d5dadefe30a785b.tar.gz
krb5-83b4ecd20e50ad330cd761977d5dadefe30a785b.tar.xz
krb5-83b4ecd20e50ad330cd761977d5dadefe30a785b.zip
Add loop() kdcpreauth method
[ghudson@mit.edu: avoid verto.h header dependency; minor fixes] ticket: 7426 (new) target_version: 1.11 tags: pullup
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/preauth_plugin.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/krb5/preauth_plugin.h b/src/include/krb5/preauth_plugin.h
index 9a241f2b1..9c4ec0f73 100644
--- a/src/include/krb5/preauth_plugin.h
+++ b/src/include/krb5/preauth_plugin.h
@@ -47,7 +47,7 @@
* int min_ver, krb5_plugin_vtable vtable);
*
* The kdcpreauth interface has a single supported major version, which is 1.
- * Major version 1 has a current minor version of 1. kdcpreauth modules should
+ * Major version 1 has a current minor version of 2. kdcpreauth modules should
* define a function named kdcpreauth_<modulename>_initvt, matching the
* signature:
*
@@ -578,6 +578,13 @@ typedef void
krb5_kdcpreauth_moddata moddata,
krb5_kdcpreauth_modreq modreq);
+/* Optional: invoked after init_fn to provide the module with a pointer to the
+ * verto main loop. */
+typedef krb5_error_code
+(*krb5_kdcpreauth_loop_fn)(krb5_context context,
+ krb5_kdcpreauth_moddata moddata,
+ struct verto_ctx *ctx);
+
typedef struct krb5_kdcpreauth_vtable_st {
/* Mandatory: name of module. */
char *name;
@@ -593,6 +600,10 @@ typedef struct krb5_kdcpreauth_vtable_st {
krb5_kdcpreauth_verify_fn verify;
krb5_kdcpreauth_return_fn return_padata;
krb5_kdcpreauth_free_modreq_fn free_modreq;
+ /* Minor 1 ends here. */
+
+ krb5_kdcpreauth_loop_fn loop;
+ /* Minor 2 ends here. */
} *krb5_kdcpreauth_vtable;
#endif /* KRB5_PREAUTH_PLUGIN_H_INCLUDED */