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

Diff for /src/usr.bin/ssh/auth2-hostbased.c between version 1.47 and 1.48

version 1.47, 2021/07/23 03:37:52 version 1.48, 2021/12/19 22:12:07
Line 56 
Line 56 
 extern ServerOptions options;  extern ServerOptions options;
   
 static int  static int
 userauth_hostbased(struct ssh *ssh)  userauth_hostbased(struct ssh *ssh, const char *method)
 {  {
         Authctxt *authctxt = ssh->authctxt;          Authctxt *authctxt = ssh->authctxt;
         struct sshbuf *b;          struct sshbuf *b;
Line 131 
Line 131 
             (r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||              (r = sshbuf_put_u8(b, SSH2_MSG_USERAUTH_REQUEST)) != 0 ||
             (r = sshbuf_put_cstring(b, authctxt->user)) != 0 ||              (r = sshbuf_put_cstring(b, authctxt->user)) != 0 ||
             (r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||              (r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
             (r = sshbuf_put_cstring(b, "hostbased")) != 0 ||              (r = sshbuf_put_cstring(b, method)) != 0 ||
             (r = sshbuf_put_string(b, pkalg, alen)) != 0 ||              (r = sshbuf_put_string(b, pkalg, alen)) != 0 ||
             (r = sshbuf_put_string(b, pkblob, blen)) != 0 ||              (r = sshbuf_put_string(b, pkblob, blen)) != 0 ||
             (r = sshbuf_put_cstring(b, chost)) != 0 ||              (r = sshbuf_put_cstring(b, chost)) != 0 ||
Line 254 
Line 254 
   
 Authmethod method_hostbased = {  Authmethod method_hostbased = {
         "hostbased",          "hostbased",
           NULL,
         userauth_hostbased,          userauth_hostbased,
         &options.hostbased_authentication          &options.hostbased_authentication
 };  };

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48