Revert c1423a8 and fix things up

Also, we were stopping as soon as one registered plugin returned
something other than KRB5_PLUGIN_NO_HANDLE, but we weren't doing the
same for discovered plugins.  Add KRB5_PLUGIN_INVOKE_ALL flag to deal
with this; by default we'll stop at the first plugin that returns
anything other than KRB5_PLUGIN_NO_HANDLE.

Other buglets fixed as in c1423a8.
This commit is contained in:
Nicolas Williams
2013-02-27 23:05:31 -06:00
parent 54078654e7
commit d4f23fe2ae
3 changed files with 394 additions and 114 deletions

View File

@@ -869,6 +869,8 @@ enum krb5_plugin_type {
PLUGIN_TYPE_FUNC
};
#define KRB5_PLUGIN_INVOKE_ALL 1
struct credentials; /* this is to keep the compiler happy */
struct getargs;
struct sockaddr;