Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/libvirt_private.syms | 1 +
src/util/virauth.c | 2 +-
src/util/virauth.h | 5 +++++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 5616c0d44c..59ae5c2720 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1854,6 +1854,7 @@ virAuthAskCredential;
virAuthConnectCredentialFree;
virAuthGetConfigFilePath;
virAuthGetConfigFilePathURI;
+virAuthGetCredential;
virAuthGetPassword;
virAuthGetPasswordPath;
virAuthGetUsername;
diff --git a/src/util/virauth.c b/src/util/virauth.c
index aa1da80266..e33658d356 100644
--- a/src/util/virauth.c
+++ b/src/util/virauth.c
@@ -99,7 +99,7 @@ virAuthGetConfigFilePath(virConnectPtr conn,
}
-static int
+int
virAuthGetCredential(const char *servicename,
const char *hostname,
const char *credname,
diff --git a/src/util/virauth.h b/src/util/virauth.h
index 3eaf40c626..589f3df6b7 100644
--- a/src/util/virauth.h
+++ b/src/util/virauth.h
@@ -42,6 +42,11 @@ char *virAuthGetPassword(virConnectPtr conn,
const char *servicename,
const char *username,
const char *hostname);
+int virAuthGetCredential(const char *servicename,
+ const char *hostname,
+ const char *credname,
+ const char *path,
+ char **value);
char * virAuthGetUsernamePath(const char *path,
virConnectAuthPtr auth,
const char *servicename,
--
2.38.1