kdc: simplify client_access windc plugin API

Make client_access plugin API take a single argument, astgs_request_t. Note: in
order to avoid making r->outpadata public (it's an internal buffer), but allow
Samba to modify the reply pa data, some pointer magic is required.
This commit is contained in:
Luke Howard
2021-12-23 20:51:37 +11:00
committed by Nico Williams
parent 36fe09f433
commit 64dad876a4
6 changed files with 24 additions and 82 deletions

View File

@@ -95,15 +95,9 @@ pac_verify(void *ctx, krb5_context context,
}
static krb5_error_code KRB5_CALLCONV
client_access(void *ctx,
krb5_context context,
krb5_kdc_configuration *config,
hdb_entry_ex *client, const char *client_name,
hdb_entry_ex *server, const char *server_name,
KDC_REQ *req,
METHOD_DATA *data)
client_access(void *ctx, astgs_request_t r)
{
krb5_warnx(context, "client_access");
krb5_warnx(r->context, "client_access");
return 0;
}