Prepare to pass down a krb5_krbhst_info into the pre-auth mechs

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16152 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-10-08 15:34:53 +00:00
parent 6b484c39a5
commit ffa6f55bd4

View File

@@ -1114,6 +1114,7 @@ process_pa_data_to_key(krb5_context context,
krb5_creds *creds, krb5_creds *creds,
AS_REQ *a, AS_REQ *a,
krb5_kdc_rep *rep, krb5_kdc_rep *rep,
const krb5_krbhst_info *hi,
krb5_keyblock **key) krb5_keyblock **key)
{ {
struct pa_info_data paid, *ppaid = NULL; struct pa_info_data paid, *ppaid = NULL;
@@ -1158,6 +1159,7 @@ process_pa_data_to_key(krb5_context context,
ret = _krb5_pk_rd_pa_reply(context, ret = _krb5_pk_rd_pa_reply(context,
ctx->pk_init_ctx, ctx->pk_init_ctx,
etype, etype,
hi,
ctx->pk_nonce, ctx->pk_nonce,
&ctx->req_buffer, &ctx->req_buffer,
pa, pa,
@@ -1194,6 +1196,8 @@ init_cred_loop(krb5_context context,
size_t len; size_t len;
size_t size; size_t size;
int send_to_kdc_flags = 0; int send_to_kdc_flags = 0;
krb5_krbhst_info *hi = NULL;
memset(&md, 0, sizeof(md)); memset(&md, 0, sizeof(md));
memset(&rep, 0, sizeof(rep)); memset(&rep, 0, sizeof(rep));
@@ -1321,7 +1325,7 @@ init_cred_loop(krb5_context context,
krb5_keyblock *key = NULL; krb5_keyblock *key = NULL;
ret = process_pa_data_to_key(context, ctx, creds, ret = process_pa_data_to_key(context, ctx, creds,
&ctx->as_req, &rep, &key); &ctx->as_req, &rep, hi, &key);
if (ret) if (ret)
goto out; goto out;