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

Diff for /src/usr.bin/ssh/authfd.c between version 1.112 and 1.113

version 1.112, 2018/11/30 02:24:52 version 1.113, 2018/12/27 23:02:11
Line 325 
Line 325 
 static u_int  static u_int
 agent_encode_alg(const struct sshkey *key, const char *alg)  agent_encode_alg(const struct sshkey *key, const char *alg)
 {  {
         if (alg != NULL && key->type == KEY_RSA) {          if (alg != NULL && sshkey_type_plain(key->type) == KEY_RSA) {
                 if (strcmp(alg, "rsa-sha2-256") == 0)                  if (strcmp(alg, "rsa-sha2-256") == 0 ||
                       strcmp(alg, "rsa-sha2-256-cert-v01@openssh.com") == 0)
                         return SSH_AGENT_RSA_SHA2_256;                          return SSH_AGENT_RSA_SHA2_256;
                 else if (strcmp(alg, "rsa-sha2-512") == 0)                  if (strcmp(alg, "rsa-sha2-512") == 0 ||
                       strcmp(alg, "rsa-sha2-512-cert-v01@openssh.com") == 0)
                         return SSH_AGENT_RSA_SHA2_512;                          return SSH_AGENT_RSA_SHA2_512;
         }          }
         return 0;          return 0;

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.113