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

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

version 1.3, 1999/09/28 04:45:37 version 1.4, 1999/09/29 15:52:55
Line 1400 
Line 1400 
   if ((supported_authentications & (1 << SSH_AUTH_PASSWORD)) &&    if ((supported_authentications & (1 << SSH_AUTH_PASSWORD)) &&
       options->password_authentication && !options->batch_mode)        options->password_authentication && !options->batch_mode)
     {      {
         char prompt[80];
         snprintf(prompt, sizeof(prompt), "%.30s@%.30s's password: ",
           server_user, host);
       debug("Doing password authentication.");        debug("Doing password authentication.");
       if (options->cipher == SSH_CIPHER_NONE)        if (options->cipher == SSH_CIPHER_NONE)
         log("WARNING: Encryption is disabled! Password will be transmitted in clear text.");          log("WARNING: Encryption is disabled! Password will be transmitted in clear text.");
       password = read_passphrase("Password: ", 0);        password = read_passphrase(prompt, 0);
       packet_start(SSH_CMSG_AUTH_PASSWORD);        packet_start(SSH_CMSG_AUTH_PASSWORD);
       packet_put_string(password, strlen(password));        packet_put_string(password, strlen(password));
       memset(password, 0, strlen(password));        memset(password, 0, strlen(password));

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