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

Diff for /src/usr.bin/ssh/ssh-agent.c between version 1.207 and 1.208

version 1.207, 2015/12/02 08:30:50 version 1.208, 2015/12/04 16:41:28
Line 351 
Line 351 
 }  }
 #endif  #endif
   
   static char *
   agent_decode_alg(struct sshkey *key, u_int flags)
   {
           if (key->type == KEY_RSA) {
                   if (flags & SSH_AGENT_RSA_SHA2_256)
                           return "rsa-sha2-256";
                   else if (flags & SSH_AGENT_RSA_SHA2_512)
                           return "rsa-sha2-512";
           }
           return NULL;
   }
   
 /* ssh2 only */  /* ssh2 only */
 static void  static void
 process_sign_request2(SocketEntry *e)  process_sign_request2(SocketEntry *e)
Line 384 
Line 396 
                 goto send;                  goto send;
         }          }
         if ((r = sshkey_sign(id->key, &signature, &slen,          if ((r = sshkey_sign(id->key, &signature, &slen,
             data, dlen, compat)) != 0) {              data, dlen, agent_decode_alg(key, flags), compat)) != 0) {
                 error("%s: sshkey_sign: %s", __func__, ssh_err(ok));                  error("%s: sshkey_sign: %s", __func__, ssh_err(ok));
                 goto send;                  goto send;
         }          }

Legend:
Removed from v.1.207  
changed lines
  Added in v.1.208