]> andersk Git - gssapi-openssh.git/blobdiff - openssh/gss-serv.c
merging in Simon Wilkinson's latest patch (openssh-3.1p1-gssapi-20020323.diff)
[gssapi-openssh.git] / openssh / gss-serv.c
index 749c031e32d054b1cf73ef7baafd91130db2aeff..edc5c3a329bab7b235adf1c211cdb112de81af0a 100644 (file)
@@ -42,6 +42,7 @@
 #include "session.h"
 #include "dispatch.h"
 #include "servconf.h"
+#include "compat.h"
 
 #include "ssh-gss.h"
 
@@ -403,7 +404,7 @@ ssh_gssapi_do_child(char ***envp, u_int *envsizep)
 #endif
        case GSS_LAST_ENTRY:
                debug("No GSSAPI credentials stored");
-               
+               break;
        default:
                log("ssh_gssapi_do_child: Unknown mechanism");
        }
@@ -464,6 +465,12 @@ userauth_gssapi(Authctxt *authctxt)
        
        if (!authctxt->valid || authctxt->user == NULL)
                return 0;
+               
+       if (datafellows & SSH_OLD_GSSAPI) {
+               debug("Early drafts of GSSAPI userauth not supported");
+               return 0;
+       }
+       
        mechs=packet_get_int();
        if (mechs==0) {
                debug("Mechanism negotiation is not supported");
This page took 0.051755 seconds and 4 git commands to generate.