kdc: add audit plugin API to windc API

Allow the windc plugin to also implement an audit callback. As part of this
change, both the HDB and windc audit function signatures are changed to return
void.
This commit is contained in:
Luke Howard
2022-01-02 21:19:43 +11:00
parent 98070b5eaa
commit a4c6b81ce9
6 changed files with 87 additions and 41 deletions

View File

@@ -116,6 +116,13 @@ finalize_reply(void *ctx, astgs_request_t r)
return 0;
}
static krb5_error_code KRB5_CALLCONV
audit(void *ctx, astgs_request_t r)
{
logit("audit", r);
return 0;
}
static krb5plugin_windc_ftable windc = {
KRB5_WINDC_PLUGING_MINOR,
windc_init,
@@ -124,7 +131,8 @@ static krb5plugin_windc_ftable windc = {
pac_verify,
client_access,
NULL, /* referral_policy */
finalize_reply
finalize_reply,
audit
};
static const krb5plugin_windc_ftable *const windc_plugins[] = {