X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/59e1d8e0ca6794fddbe195e357972f460d68b3d3..1ae8c4833bdebf9bf80d465a4c1e7d50a1d65af3:/openssh/gss-serv.c diff --git a/openssh/gss-serv.c b/openssh/gss-serv.c index cce1315..ceef7dc 100644 --- a/openssh/gss-serv.c +++ b/openssh/gss-serv.c @@ -249,7 +249,7 @@ ssh_gssapi_krb5_storecreds() { #endif /* KRB5 */ #ifdef GSI -#include +#include "globus_gss_assist_gsi.h" /* * Check if this user is OK to login under GSI. User has been authenticated @@ -363,16 +363,16 @@ void ssh_gssapi_storecreds() { switch (gssapi_client_type) { -#ifdef KRB5 - case GSS_KERBEROS: - ssh_gssapi_krb5_storecreds(); - break; -#endif #ifdef GSI case GSS_GSI: ssh_gssapi_gsi_storecreds(); break; #endif /* GSI */ +#ifdef KRB5 + case GSS_KERBEROS: + ssh_gssapi_krb5_storecreds(); + break; +#endif case GSS_LAST_ENTRY: /* GSSAPI not used in this authentication */ debug("No GSSAPI credentials stored"); @@ -555,6 +555,7 @@ input_gssapi_token(int type, u_int32_t plen, void *ctxt) if (GSS_ERROR(maj_status)) { /* Failure */ + 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);