(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,
|
||||
Checksum *cksum,
|
||||
Authenticator **auth_result,
|
||||
krb5_data *result)
|
||||
krb5_data *result,
|
||||
krb5_key_usage usage)
|
||||
{
|
||||
Authenticator *auth;
|
||||
u_char *buf = NULL;
|
||||
@@ -130,7 +131,7 @@ krb5_build_authenticator (krb5_context context,
|
||||
goto fail;
|
||||
ret = krb5_encrypt (context,
|
||||
crypto,
|
||||
KRB5_KU_AP_REQ_AUTH,
|
||||
usage /* KRB5_KU_AP_REQ_AUTH */,
|
||||
buf + buf_size - len,
|
||||
len,
|
||||
result);
|
||||
|
Reference in New Issue
Block a user