getpass: build prompt string and pass it
commit2331347d7c59af9a738085deae8ebc92ea6d96b9
authorAntonio Borneo <Antonio Borneo@315857ad-0bdb-0310-b42e-dec37551a5f0>
Tue, 18 Feb 2014 05:09:56 +0000 (18 05:09 +0000)
committerAntonio Borneo <Antonio Borneo@315857ad-0bdb-0310-b42e-dec37551a5f0>
Tue, 18 Feb 2014 05:09:56 +0000 (18 05:09 +0000)
tree9acc73701f7e06a4e4e7d72f7423f297b93dc641
parent5386cd23fa924c24541aa29bb040117468558d02
getpass: build prompt string and pass it

Instead of printing the prompt before getpass(),
build prompt string in a buffer and pass it.
In this way, password helper gets the prompt.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
git-svn-id: https://svn.unix-ag.uni-kl.de/vpnc/trunk@546 315857ad-0bdb-0310-b42e-dec37551a5f0
config.c