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
@@ -66,10 +66,12 @@ resolve_lookup(void *ctx,
|
||||
s.sin_port = htons(88);
|
||||
s.sin_addr.s_addr = htonl(0x7f000002);
|
||||
|
||||
if (strcmp(realm, "NOTHERE.H5L.SE") == 0)
|
||||
if (strcmp(realm, "NOTHERE.H5L.SE") == 0) {
|
||||
(*add)(addctx, type, (struct sockaddr *)&s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return KRB5_PLUGIN_NO_HANDLE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user