Re: askpass option

[email protected] (Niels Möller) 24 Jan 2005 19:23:00 +0100
Newsgroups gmane.network.lsh.bugs
Message-ID <[email protected]>
Georg Sauthoff <[email protected]> writes:

> I think the username and hostname in the argument vector would be useful for
> some applications. Is this a bad idea?

It might be useful (do you have any example scenarios?), but doesn't
quite fit with the internal interface that the askpass feature uses.

> BTW, why does lsh write the prompt string in argv[1]?

The idea is that the askpass program can be used to ask for any secret
information. The point of the prompt string is to give the user some
clue about what's being asked.

Next, the idea of the askpass feature is to let an external program
take care of this part of the user interaction. It might display the
prompt on the terminal, but it might just as well open an X window and
display it in the window title, or whatever. That's why lsh passes the
prompt to the askpass program, and putting it on the command lined
seemed like the simplest way to do that.

Regards,
/Niels