[BACK]Return to auth-rh-rsa.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/auth-rh-rsa.c between version 1.44 and 1.45

version 1.44, 2014/07/15 15:54:14 version 1.45, 2016/03/07 19:02:43
Line 38 
Line 38 
 extern ServerOptions options;  extern ServerOptions options;
   
 int  int
 auth_rhosts_rsa_key_allowed(struct passwd *pw, char *cuser, char *chost,  auth_rhosts_rsa_key_allowed(struct passwd *pw, const char *cuser,
     Key *client_host_key)      const char *chost, Key *client_host_key)
 {  {
         HostStatus host_status;          HostStatus host_status;
   
Line 64 
Line 64 
 int  int
 auth_rhosts_rsa(Authctxt *authctxt, char *cuser, Key *client_host_key)  auth_rhosts_rsa(Authctxt *authctxt, char *cuser, Key *client_host_key)
 {  {
         char *chost;          struct ssh *ssh = active_state; /* XXX */
           const char *chost;
         struct passwd *pw = authctxt->pw;          struct passwd *pw = authctxt->pw;
   
         debug("Trying rhosts with RSA host authentication for client user %.100s",          debug("Trying rhosts with RSA host authentication for client user %.100s",
Line 74 
Line 75 
             client_host_key->rsa == NULL)              client_host_key->rsa == NULL)
                 return 0;                  return 0;
   
         chost = (char *)get_canonical_hostname(options.use_dns);          chost = auth_get_canonical_hostname(ssh, options.use_dns);
         debug("Rhosts RSA authentication: canonical host %.900s", chost);          debug("Rhosts RSA authentication: canonical host %.900s", chost);
   
         if (!PRIVSEP(auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key))) {          if (!PRIVSEP(auth_rhosts_rsa_key_allowed(pw, cuser, chost, client_host_key))) {

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45