lib/krb5: prepare to make common plugins public

Rename common_plugin_ftable to krb5_plugin_common_ftable.

Create lib/krb5/common_plugin.h to include the structure and typedef.

The common_plugin.h header is now included by ccache_plugin.h
along with a prototype for the required ccache_ops_plugin_load()
function.

Change-Id: I2b27d6d0f5cf0544482c3f01784fef945e12e8d8
This commit is contained in:
Jeffrey Altman
2019-02-07 10:45:53 -05:00
committed by Jeffrey Altman
parent df78c88cc0
commit ac6fa4cadc
3 changed files with 71 additions and 14 deletions

View File

@@ -33,7 +33,14 @@
#define HEIMDAL_KRB5_CCACHE_PLUGIN_H 1
#include <krb5.h>
#include <common_plugin.h>
#define KRB5_PLUGIN_CCACHE "ccache_ops"
krb5_error_code KRB5_CALLCONV
ccache_ops_plugin_load(krb5_context context,
krb5_get_instance_func_t *func,
size_t *n_ftables,
const krb5_plugin_common_ftable *const **ftables);
#endif /* HEIMDAL_KRB5_CCACHE_PLUGIN_H */