]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: add API for reading password from the console
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 14 Jan 2020 10:40:52 +0000 (10:40 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 29 Jan 2020 14:51:39 +0000 (14:51 +0000)
commitdb72866310d1e520efa8ed2d4589bdb5e76a1c95
tree532a2271a0fea4243b8477801d038c9fb2a811af
parent19ff90a9c5270d9b903f14f6fefce1edcf6dd6ed
util: add API for reading password from the console

This imports a simpler version of GNULIB's getpass() function
impl for Windows. Note that GNULIB's impl was buggy as it
returned a static string on UNIX, and a heap allocated string
on Windows. This new impl always heap allocates.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt.c
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h
tools/virsh-secret.c