(krb5_build_authenticator): add a `usage' parameter to permit the
generation of authenticators with different crypto usage git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9168 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -42,7 +42,8 @@ krb5_build_authenticator (krb5_context context,
|
|||||||
krb5_creds *cred,
|
krb5_creds *cred,
|
||||||
Checksum *cksum,
|
Checksum *cksum,
|
||||||
Authenticator **auth_result,
|
Authenticator **auth_result,
|
||||||
krb5_data *result)
|
krb5_data *result,
|
||||||
|
krb5_key_usage usage)
|
||||||
{
|
{
|
||||||
Authenticator *auth;
|
Authenticator *auth;
|
||||||
u_char *buf = NULL;
|
u_char *buf = NULL;
|
||||||
@@ -130,7 +131,7 @@ krb5_build_authenticator (krb5_context context,
|
|||||||
goto fail;
|
goto fail;
|
||||||
ret = krb5_encrypt (context,
|
ret = krb5_encrypt (context,
|
||||||
crypto,
|
crypto,
|
||||||
KRB5_KU_AP_REQ_AUTH,
|
usage /* KRB5_KU_AP_REQ_AUTH */,
|
||||||
buf + buf_size - len,
|
buf + buf_size - len,
|
||||||
len,
|
len,
|
||||||
result);
|
result);
|
||||||
|
Reference in New Issue
Block a user