OPENSSH_GSSAPI_Protocol1_Complete; official GSI OpenSSH now lives on the
trunk; Simon's patched version of OpenSSH can now be found on
OPENSSH_GSSAPI-branch
/* Get the user name. */
user = packet_get_string(&ulen);
- packet_integrity_check(plen, (4 + ulen), SSH_CMSG_USER);
+ packet_check_eom();
+
+ #ifdef GSSAPI
- /* Parse GSSAPI identity from userstring */
- user = ssh1_gssapi_parse_userstring(user);
++ /* Parse GSSAPI identity from userstring */
++ user = ssh1_gssapi_parse_userstring(user);
+ #endif /* GSSAPI */
if ((style = strchr(user, ':')) != NULL)
*style++ = '\0';
if (GSS_ERROR(maj_status)) {
/* Failure <sniff> */
+ ssh_gssapi_send_error(maj_status,min_status);
authctxt->postponed = 0;
+ dispatch_set(SSH_MSG_AUTH_GSSAPI_TOKEN, NULL);
dispatch_set(SSH2_MSG_USERAUTH_GSSAPI_TOKEN, NULL);
userauth_finish(authctxt, 0, "gssapi");
}