]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virAuth: Don't require virConnectPtr to retrieve authentication creds
authorPeter Krempa <pkrempa@redhat.com>
Tue, 9 Jul 2013 14:14:45 +0000 (16:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 12 Jul 2013 07:22:38 +0000 (09:22 +0200)
commitc7dba5d69528377edc2ce33415fd131d61efda4b
tree169c43f3d278c6496bf3e59c2ae14d893228fe89
parent6d986d9918bebbb435664b8d06514733f20f3f57
virAuth: Don't require virConnectPtr to retrieve authentication creds

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
src/util/virauth.h