~ubuntu-branches/ubuntu/precise/dropbear/precise

« back to all changes in this revision

Viewing changes to cli-authpasswd.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2007-03-02 20:48:18 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070302204818-ozmbou2sbyj7dus5
Tags: 0.49-1
* new upstream release, fixes
  * CVE-2007-1099: dropbear dbclient insufficient warning on hostkey
    mismatch (closes: #412899).
  * dbclient uses static "Password:" prompt instead of using the server's
    prompt (closes: #394996).
* debian/control: Suggests: openssh-client, not ssh (closes: #405686);
  Standards-Version: 3.7.2.2.
* debian/README.Debian: ssh -> openssh-server, openssh-client; remove
  'Replacing OpenSSH "sshd" with Dropbear' part, this is simply done by not
  installing the openssh-server package.
* debian/README.runit: runsvstat -> sv status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
void cli_auth_password() {
117
117
 
118
118
        char* password = NULL;
 
119
        char prompt[80];
119
120
 
120
121
        TRACE(("enter cli_auth_password"))
121
122
        CHECKCLEARTOWRITE();
122
123
 
 
124
        snprintf(prompt, sizeof(prompt), "%s@%s's password: ", 
 
125
                                cli_opts.username, cli_opts.remotehost);
123
126
#ifdef ENABLE_CLI_ASKPASS_HELPER
124
127
        if (want_askpass())
125
 
                password = gui_getpass("Password: ");
 
128
                password = gui_getpass(prompt);
126
129
        else
127
130
#endif
128
 
                password = getpass_or_cancel("Password: ");
 
131
                password = getpass_or_cancel(prompt);
129
132
 
130
133
        buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_REQUEST);
131
134