diff options
author | Tom Yu <tlyu@mit.edu> | 2006-06-14 22:27:54 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2006-06-14 22:27:54 +0000 |
commit | 4c2bc7a022bff031e101a88363ff7756871e8721 (patch) | |
tree | e2fcdfdbf65e10c6546068e54d832b4a4c237c70 /src/include/krb5 | |
parent | c162f7fadad60a02fc35ba14d1b7e52f225460a4 (diff) | |
download | krb5-4c2bc7a022bff031e101a88363ff7756871e8721.zip krb5-4c2bc7a022bff031e101a88363ff7756871e8721.tar.gz krb5-4c2bc7a022bff031e101a88363ff7756871e8721.tar.bz2 |
Merge from branches/mechglue. Initial integration of Sun-donated
mechglue and SPNEGO implementations. Additional changes outside of
src/lib/gssapi:
* src/configure.in: Add lib/gssapi/mechglue and lib/gssapi/spnego
to list of directories to output Makefile in.
* src/lib/rpc/unit-test/rpc_test.0/expire.exp (expired): Update
regexp for mechglue.
* src/tests/dejagnu/krb-standalone/v4gssftp.exp (v4ftp_test):
Update "Miscellaneous failure" regexp for mechglue.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18131 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5')
-rw-r--r-- | src/include/krb5/locate.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/krb5/locate.h b/src/include/krb5/locate.h new file mode 100644 index 0000000..552369c --- /dev/null +++ b/src/include/krb5/locate.h @@ -0,0 +1,30 @@ +#ifndef K5_PLUGIN_H_INCLUDED +#define K5_PLUGIN_H_INCLUDED +#include <krb5/krb5.h> + +enum locate_service_type { + locate_service_kdc = 1, + locate_service_master_kdc, + locate_service_kadmin, + locate_service_krb524, + locate_service_kpasswd +}; + +struct krb5plugin_service_locate_ftable { + int vmajor, vminor; + /* Per-context setup and teardown. Returned void* blob is + private to the plugin. */ + krb5_error_code (*init)(krb5_context, void **); + void (*fini)(void *); + /* Callback function returns non-zero if the plugin function + should quit and return; this may be because of an error, or may + indicate we've already contacted the service, whatever. The + lookup function should only return an error if it detects a + problem, not if the callback function tells it to quit. */ + krb5_error_code (*lookup)(void *, + enum locate_service_type svc, const char *realm, + int socktype, int family, + int (*cbfunc)(void *,int,struct sockaddr *), + void *cbdata); +}; +#endif |