X-Git-Url: http://www.project-moonshot.org/gitweb/?p=openssh.git;a=blobdiff_plain;f=auth2-gss.c;fp=auth2-gss.c;h=3967961bccfa877fd3440c99b1465ba0256e3967;hp=2c7771876cfd6bb7ac253084c33e34b9106b9216;hb=58fcce14478d26bb3d9886d4d9b02fbc33bf8216;hpb=991c385d7c6b1c8592b4057bf2e0708ddf9854e9 diff --git a/auth2-gss.c b/auth2-gss.c index 2c77718..3967961 100644 --- a/auth2-gss.c +++ b/auth2-gss.c @@ -51,6 +51,7 @@ static void input_gssapi_token(int type, u_int32_t plen, void *ctxt); static void input_gssapi_mic(int type, u_int32_t plen, void *ctxt); static void input_gssapi_exchange_complete(int type, u_int32_t plen, void *ctxt); static void input_gssapi_errtok(int, u_int32_t, void *); +static void gssapi_set_username(Authctxt *authctxt); /* * The 'gssapi_keyex' userauth mechanism. @@ -74,6 +75,8 @@ userauth_gsskeyex(Authctxt *authctxt) gssbuf.value = buffer_ptr(&b); gssbuf.length = buffer_len(&b); + gssapi_set_username(authctxt); + /* gss_kex_context is NULL with privsep, so we can't check it here */ if (!GSS_ERROR(PRIVSEP(ssh_gssapi_checkmic(gss_kex_context, &gssbuf, &mic))))