[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.103 and 1.104

version 1.103, 2002/05/31 10:30:33 version 1.104, 2002/06/19 00:27:55
Line 395 
Line 395 
                 if (key->type != pktype) {                  if (key->type != pktype) {
                         error("input_userauth_pk_ok: type mismatch "                          error("input_userauth_pk_ok: type mismatch "
                             "for decoded key (received %d, expected %d)",                              "for decoded key (received %d, expected %d)",
                              key->type, pktype);                              key->type, pktype);
                         break;                          break;
                 }                  }
                 fp = key_fingerprint(key, SSH_FP_MD5, SSH_FP_HEX);                  fp = key_fingerprint(key, SSH_FP_MD5, SSH_FP_HEX);
Line 463 
Line 463 
         packet_add_padding(64);          packet_add_padding(64);
         packet_send();          packet_send();
   
         dispatch_set(SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ,          dispatch_set(SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ,
             &input_userauth_passwd_changereq);              &input_userauth_passwd_changereq);
   
         return 1;          return 1;
Line 495 
Line 495 
         packet_put_cstring(authctxt->service);          packet_put_cstring(authctxt->service);
         packet_put_cstring(authctxt->method->name);          packet_put_cstring(authctxt->method->name);
         packet_put_char(1);                     /* additional info */          packet_put_char(1);                     /* additional info */
         snprintf(prompt, sizeof(prompt),          snprintf(prompt, sizeof(prompt),
             "Enter %.30s@%.128s's old password: ",              "Enter %.30s@%.128s's old password: ",
             authctxt->server_user, authctxt->host);              authctxt->server_user, authctxt->host);
         password = read_passphrase(prompt, 0);          password = read_passphrase(prompt, 0);
Line 504 
Line 504 
         xfree(password);          xfree(password);
         password = NULL;          password = NULL;
         while (password == NULL) {          while (password == NULL) {
                 snprintf(prompt, sizeof(prompt),                  snprintf(prompt, sizeof(prompt),
                     "Enter %.30s@%.128s's new password: ",                      "Enter %.30s@%.128s's new password: ",
                     authctxt->server_user, authctxt->host);                      authctxt->server_user, authctxt->host);
                 password = read_passphrase(prompt, RP_ALLOW_EOF);                  password = read_passphrase(prompt, RP_ALLOW_EOF);
Line 512 
Line 512 
                         /* bail out */                          /* bail out */
                         return;                          return;
                 }                  }
                 snprintf(prompt, sizeof(prompt),                  snprintf(prompt, sizeof(prompt),
                     "Retype %.30s@%.128s's new password: ",                      "Retype %.30s@%.128s's new password: ",
                     authctxt->server_user, authctxt->host);                      authctxt->server_user, authctxt->host);
                 retype = read_passphrase(prompt, 0);                  retype = read_passphrase(prompt, 0);
Line 530 
Line 530 
         xfree(password);          xfree(password);
         packet_add_padding(64);          packet_add_padding(64);
         packet_send();          packet_send();
   
         dispatch_set(SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ,          dispatch_set(SSH2_MSG_USERAUTH_PASSWD_CHANGEREQ,
             &input_userauth_passwd_changereq);              &input_userauth_passwd_changereq);
 }  }
   

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104