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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.3 and 1.4

version 1.3, 2000/04/27 08:01:27 version 1.4, 2000/04/27 17:54:01
Line 330 
Line 330 
         }          }
         dsa_make_key_blob(k, &blob, &bloblen);          dsa_make_key_blob(k, &blob, &bloblen);
   
 //DSA_print_fp(stderr, k->dsa, 8);  
   
         /* data to be signed */          /* data to be signed */
         buffer_init(&b);          buffer_init(&b);
         buffer_append(&b, session_id2, session_id2_len);          buffer_append(&b, session_id2, session_id2_len);
Line 425 
Line 423 
                 packet_done();                  packet_done();
                 if (partial)                  if (partial)
                         debug("partial success");                          debug("partial success");
                 if (strstr(auths, "publickey") != NULL) {                  if (options.rsa_authentication &&
                       strstr(auths, "publickey") != NULL) {
                         while (i < options.num_identity_files2) {                          while (i < options.num_identity_files2) {
                                 sent = ssh2_try_pubkey(                                  sent = ssh2_try_pubkey(
                                     options.identity_files2[i++],                                      options.identity_files2[i++],
Line 435 
Line 434 
                         }                          }
                 }                  }
                 if (!sent) {                  if (!sent) {
                         if (strstr(auths, "password") != NULL) {                          if (options.password_authentication &&
                               !options.batch_mode &&
                               strstr(auths, "password") != NULL) {
                                 sent = ssh2_try_passwd(server_user, host, service);                                  sent = ssh2_try_passwd(server_user, host, service);
                         } else {  
                                 fatal("passwd auth not supported: %s", auths);  
                         }                          }
                         if (!sent)  
                                 fatal("no more auths: %s", auths);  
                 }                  }
                   if (!sent)
                           fatal("Permission denied (%s).", auths);
                 xfree(auths);                  xfree(auths);
         }          }
         packet_done();          packet_done();

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4