[BACK]Return to auth2-gss.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/auth2-gss.c between version 1.8.4.2 and 1.9

version 1.8.4.2, 2006/02/03 02:53:44 version 1.9, 2005/06/17 02:44:32
Line 34 
Line 34 
 #include "log.h"  #include "log.h"
 #include "dispatch.h"  #include "dispatch.h"
 #include "servconf.h"  #include "servconf.h"
   #include "compat.h"
 #include "packet.h"  #include "packet.h"
 #include "monitor_wrap.h"  #include "monitor_wrap.h"
   
Line 48 
Line 49 
   
 /*  /*
  * We only support those mechanisms that we know about (ie ones that we know   * We only support those mechanisms that we know about (ie ones that we know
  * how to check local user kuserok and the like)   * how to check local user kuserok and the like
  */   */
 static int  static int
 userauth_gssapi(Authctxt *authctxt)  userauth_gssapi(Authctxt *authctxt)
Line 81 
Line 82 
                 present = 0;                  present = 0;
                 doid = packet_get_string(&len);                  doid = packet_get_string(&len);
   
                 if (len > 2 && doid[0] == SSH_GSS_OIDTYPE &&                  if (len > 2 &&
                     doid[1] == len - 2) {                     doid[0] == SSH_GSS_OIDTYPE &&
                      doid[1] == len - 2) {
                         goid.elements = doid + 2;                          goid.elements = doid + 2;
                         goid.length   = len - 2;                          goid.length   = len - 2;
                         gss_test_oid_set_member(&ms, &goid, supported,                          gss_test_oid_set_member(&ms, &goid, supported,
Line 104 
Line 106 
                 return (0);                  return (0);
         }          }
   
         authctxt->methoddata = (void *)ctxt;          authctxt->methoddata=(void *)ctxt;
   
         packet_start(SSH2_MSG_USERAUTH_GSSAPI_RESPONSE);          packet_start(SSH2_MSG_USERAUTH_GSSAPI_RESPONSE);
   

Legend:
Removed from v.1.8.4.2  
changed lines
  Added in v.1.9