krb5, kadm5: refactor plugin API
Refactor plugin framework to use a single list of loaded plugins; add a new plugin API where DSOs export a load function that can declare dependencies and export multiple plugins; refactor kadm5 hook API to use krb5 plugin framework. More information in krb5-plugin(7).
This commit is contained in:

committed by
Nico Williams

parent
e9b3b2326d
commit
803efebca5
@@ -134,6 +134,7 @@ struct ContentInfo;
|
||||
struct AlgorithmIdentifier;
|
||||
typedef struct krb5_pk_init_ctx_data *krb5_pk_init_ctx;
|
||||
struct krb5_dh_moduli;
|
||||
struct krb5_plugin_data;
|
||||
|
||||
/* v4 glue */
|
||||
struct _krb5_krb_auth_data;
|
||||
@@ -393,4 +394,12 @@ struct krb5_pk_init_ctx_data {
|
||||
# define ISPATHSEP(x) (x == '/')
|
||||
#endif
|
||||
|
||||
struct krb5_plugin_data {
|
||||
const char *module;
|
||||
const char *name;
|
||||
int min_version;
|
||||
const char **deps;
|
||||
krb5_get_instance_func_t get_instance;
|
||||
};
|
||||
|
||||
#endif /* __KRB5_LOCL_H__ */
|
||||
|
Reference in New Issue
Block a user