kdc: add finalize_reply API to windc plugin

Allow a windc plugin to finalize the KDC reply (including the encrypted ticket
and reply parts) before encoding for transmission.
This commit is contained in:
Luke Howard
2021-12-23 15:31:12 +11:00
committed by Nico Williams
parent 6b312659cb
commit e81bcb71f3
5 changed files with 49 additions and 2 deletions

View File

@@ -2745,6 +2745,13 @@ _kdc_as_rep(astgs_request_t r)
}
}
/*
* Last chance for plugins to update reply
*/
ret = _kdc_finalize_reply(r);
if (ret)
goto out;
/*
* Don't send kvno from client entry if the pre-authentication
* mechanism replaced the reply key.