gss: Make initiator inq. ctx. return canon. target

Make gss_inquire_context() on the established context on the initiator
side return the canonical target acceptor name.
This commit is contained in:
Nicolas Williams
2021-12-06 16:52:52 -06:00
parent 5ace5f5a6a
commit 83625d349e

View File

@@ -254,6 +254,13 @@ gsskrb5_get_creds(
return GSS_S_FAILURE;
}
krb5_free_principal(context, ctx->target);
kret = krb5_copy_principal(context, ctx->kcred->server, &ctx->target);
if (kret) {
*minor_status = kret;
return GSS_S_FAILURE;
}
ctx->endtime = ctx->kcred->times.endtime;
ret = _gsskrb5_lifetime_left(minor_status, context,