X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=mech_eap%2Finit_sec_context.c;h=89faf495b05ce09b8ec8a9e3687cf4e1774021bc;hp=7a2fb46aeb2eb576f247914be35e4653d9b4fe8d;hb=HEAD;hpb=67134e45772a0ecc64292cdb7023a64ff03529a4 diff --git a/mech_eap/init_sec_context.c b/mech_eap/init_sec_context.c index 7a2fb46..89faf49 100644 --- a/mech_eap/init_sec_context.c +++ b/mech_eap/init_sec_context.c @@ -762,7 +762,7 @@ eapGssSmInitGssReauth(OM_uint32 *minor, * context credential does not currently have the reauth creds. */ if (GSSEAP_SM_STATE(ctx) == GSSEAP_STATE_INITIAL) { - if (!gssEapCanReauthP(cred, target, timeReq)) + if (!gssEapCanReauthP(cred, (gss_name_t) target, timeReq)) return GSS_S_CONTINUE_NEEDED; ctx->flags |= CTX_FLAG_KRB_REAUTH; @@ -774,7 +774,7 @@ eapGssSmInitGssReauth(OM_uint32 *minor, GSSEAP_ASSERT(cred != GSS_C_NO_CREDENTIAL); - major = gssEapMechToGlueName(minor, target, &mechTarget); + major = gssEapMechToGlueName(minor, (gss_name_t) target, &mechTarget); if (GSS_ERROR(major)) goto cleanup;