Install kuserok-plugin.h and update docs
The header file was not installed, and the manpage had the wrong name for the plugin load function, it is "krb5_plugin_kuserok_plugin_load", not "kuserok_plugin_load".
This commit is contained in:
@@ -389,7 +389,14 @@ nodist_include_HEADERS = krb5_err.h heim_err.h k524_err.h k5e1_err.h
|
||||
|
||||
# XXX use nobase_include_HEADERS = krb5/locate_plugin.h
|
||||
krb5dir = $(includedir)/krb5
|
||||
krb5_HEADERS = common_plugin.h locate_plugin.h send_to_kdc_plugin.h ccache_plugin.h an2ln_plugin.h db_plugin.h
|
||||
krb5_HEADERS = \
|
||||
an2ln_plugin.h \
|
||||
ccache_plugin.h \
|
||||
common_plugin.h \
|
||||
db_plugin.h \
|
||||
kuserok_plugin.h \
|
||||
locate_plugin.h \
|
||||
send_to_kdc_plugin.h
|
||||
|
||||
build_HEADERZ = \
|
||||
$(krb5_HEADERS) \
|
||||
|
@@ -57,19 +57,20 @@ associated header file, such as, for example,
|
||||
.Va krb5plugin_kuserok_ftable
|
||||
and a pointer to which is either registered via
|
||||
.Xr krb5_plugin_register 3
|
||||
or via a plugin load function exported by a shared object. Plugin load
|
||||
functions should be named by concatenating the name defined in the associated
|
||||
header file with the string "plugin_load" (e.g. "kuserok_plugin_load" for the
|
||||
plugin for
|
||||
or via a plugin load function exported by a shared object.
|
||||
Plugin load functions should be named by concatenating the name defined in the
|
||||
associated header file with the string "plugin_load" (e.g.
|
||||
"krb5_plugin_kuserok_plugin_load" for the plugin for
|
||||
.Xr krb5_kuserok 3
|
||||
).
|
||||
The plugin load function has the following signature:
|
||||
.Bd -literal -offset indent
|
||||
krb5_error_code
|
||||
kuserok_plugin_load(krb5_context context,
|
||||
krb5_get_instance_func_t *get_instance,
|
||||
size_t *n_plugins,
|
||||
const common_plugin_ftable *const **plugins);
|
||||
krb5_plugin_kuserok_plugin_load(
|
||||
krb5_context context,
|
||||
krb5_get_instance_func_t *get_instance,
|
||||
size_t *n_plugins,
|
||||
const common_plugin_ftable *const **plugins);
|
||||
.Ed
|
||||
.Pp
|
||||
The plugin should set the get_instance output parameter to the a function
|
||||
@@ -293,10 +294,11 @@ kuserok_get_instance(const char *libname)
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
kuserok_plugin_load(krb5_context context,
|
||||
krb5_get_instance_func_t *get_instance,
|
||||
size_t *num_plugins,
|
||||
const krb5plugin_kuserok_ftable * const **pplugins)
|
||||
krb5_plugin_kuserok_plugin_load(
|
||||
krb5_context context,
|
||||
krb5_get_instance_func_t *get_instance,
|
||||
size_t *num_plugins,
|
||||
const krb5plugin_kuserok_ftable * const **pplugins)
|
||||
{
|
||||
*krb5_instance = kuserok_get_instance;
|
||||
*num_plugins = sizeof(plugins) / sizeof(plugins[0]);
|
||||
|
Reference in New Issue
Block a user