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

Diff for /src/usr.bin/ssh/auth2-none.c between version 1.18 and 1.19

version 1.18, 2014/07/15 15:54:14 version 1.19, 2017/05/30 14:27:22
Line 28 
Line 28 
 #include <stdio.h>  #include <stdio.h>
   
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "key.h"  #include "sshkey.h"
 #include "hostfile.h"  #include "hostfile.h"
 #include "auth.h"  #include "auth.h"
 #include "packet.h"  #include "packet.h"
Line 38 
Line 38 
 #include "servconf.h"  #include "servconf.h"
 #include "compat.h"  #include "compat.h"
 #include "ssh2.h"  #include "ssh2.h"
   #include "ssherr.h"
 #ifdef GSSAPI  #ifdef GSSAPI
 #include "ssh-gss.h"  #include "ssh-gss.h"
 #endif  #endif
Line 52 
Line 53 
 static int  static int
 userauth_none(Authctxt *authctxt)  userauth_none(Authctxt *authctxt)
 {  {
           struct ssh *ssh = active_state; /* XXX */
           int r;
   
         none_enabled = 0;          none_enabled = 0;
         packet_check_eom();          if ((r = sshpkt_get_end(ssh)) != 0)
                   fatal("%s: %s", __func__, ssh_err(r));
         if (options.permit_empty_passwd && options.password_authentication)          if (options.permit_empty_passwd && options.password_authentication)
                 return (PRIVSEP(auth_password(authctxt, "")));                  return (PRIVSEP(auth_password(ssh->authctxt, "")));
         return (0);          return (0);
 }  }
   

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19