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

Diff for /src/usr.bin/ssh/ssh-keyscan.c between version 1.93 and 1.94

version 1.93, 2014/12/11 08:20:09 version 1.94, 2015/01/19 20:16:15
Line 94 
Line 94 
         char *c_namelist;       /* Pointer to other possible addresses */          char *c_namelist;       /* Pointer to other possible addresses */
         char *c_output_name;    /* Hostname of connection for output */          char *c_output_name;    /* Hostname of connection for output */
         char *c_data;           /* Data read from this fd */          char *c_data;           /* Data read from this fd */
         Kex *c_kex;             /* The key-exchange struct for ssh2 */          struct kex *c_kex;      /* The key-exchange struct for ssh2 */
         struct timeval c_tv;    /* Time at which connection gets aborted */          struct timeval c_tv;    /* Time at which connection gets aborted */
         TAILQ_ENTRY(Connection) c_link; /* List of connections in timeout order. */          TAILQ_ENTRY(Connection) c_link; /* List of connections in timeout order. */
 } con;  } con;
Line 205 
Line 205 
 #endif  #endif
   
 static int  static int
 hostjump(Key *hostkey)  hostjump(Key *hostkey, struct ssh *ssh)
 {  {
         kexjmp_key = hostkey;          kexjmp_key = hostkey;
         longjmp(kexjmp, 1);          longjmp(kexjmp, 1);
Line 231 
Line 231 
 keygrab_ssh2(con *c)  keygrab_ssh2(con *c)
 {  {
         char *myproposal[PROPOSAL_MAX] = { KEX_CLIENT };          char *myproposal[PROPOSAL_MAX] = { KEX_CLIENT };
         int j;          int r, j;
   
         packet_set_connection(c->c_fd, c->c_fd);          packet_set_connection(c->c_fd, c->c_fd);
         enable_compat20();          enable_compat20();
Line 240 
Line 240 
             (c->c_keytype == KT_RSA ? "ssh-rsa" :              (c->c_keytype == KT_RSA ? "ssh-rsa" :
             (c->c_keytype == KT_ED25519 ? "ssh-ed25519" :              (c->c_keytype == KT_ED25519 ? "ssh-ed25519" :
             "ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521"));              "ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521"));
         c->c_kex = kex_setup(myproposal);          if ((r = kex_setup(active_state, myproposal)) < 0)
                   fatal("%s: kex_setup: %s", __func__, ssh_err(r));
           c->c_kex = active_state->kex;
 #ifdef WITH_OPENSSL  #ifdef WITH_OPENSSL
         c->c_kex->kex[KEX_DH_GRP1_SHA1] = kexdh_client;          c->c_kex->kex[KEX_DH_GRP1_SHA1] = kexdh_client;
         c->c_kex->kex[KEX_DH_GRP14_SHA1] = kexdh_client;          c->c_kex->kex[KEX_DH_GRP14_SHA1] = kexdh_client;
Line 253 
Line 255 
   
         if (!(j = setjmp(kexjmp))) {          if (!(j = setjmp(kexjmp))) {
                 nonfatal_fatal = 1;                  nonfatal_fatal = 1;
                 dispatch_run(DISPATCH_BLOCK, &c->c_kex->done, c->c_kex);                  dispatch_run(DISPATCH_BLOCK, &c->c_kex->done, active_state);
                 fprintf(stderr, "Impossible! dispatch_run() returned!\n");                  fprintf(stderr, "Impossible! dispatch_run() returned!\n");
                 exit(1);                  exit(1);
         }          }

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94