On Wed, Jul 10, 2013 at 08:42:03AM +0200, Peter Krempa wrote: > Previously a connection object was required to retrieve the auth > credentials. This patch adds the option to call the retrieval functions > only using the connection URI or path to the configuration file. This > will allow to use this toolkit to request passwords for ssh > authentication in the libssh2 connection driver. > > Changes: > *virAuthGetConfigFilePathURI(): use URI to retrieve the config file path > *virAuthGetCredential(): Remove the need to propagate conn object > > virAuthGetPasswordPath(): > *virAuthGetUsernamePath(): New functions, that use config file path > instead of conn object > --- > src/util/virauth.c | 107 +++++++++++++++++++++++++++++++++++++---------------- > src/util/virauth.h | 17 ++++++++- > 2 files changed, 91 insertions(+), 33 deletions(-) ACK I won't force you to write a test case for this, since we don't already have a test virauth.h file APIs. If you should wish to write one anyway though..... Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list