summaryrefslogtreecommitdiff
path: root/auth/credentials/credentials.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-07-31 12:52:17 +0200
committerAndrew Bartlett <abartlet@samba.org>2013-08-05 17:48:01 +1200
commit6ff6778bdc60f1cd4d52cba83bd47d3398fe5a20 (patch)
treef33d3c90d330cfd7d0ffc65ede294aa78c97c16b /auth/credentials/credentials.c
parentb8f09226458dc13cf901f481ede89d8a6bb94ba7 (diff)
downloadsamba-6ff6778bdc60f1cd4d52cba83bd47d3398fe5a20.tar.gz
samba-6ff6778bdc60f1cd4d52cba83bd47d3398fe5a20.tar.bz2
samba-6ff6778bdc60f1cd4d52cba83bd47d3398fe5a20.zip
auth/credentials: add cli_credentials_[set_]callback_data*
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'auth/credentials/credentials.c')
-rw-r--r--auth/credentials/credentials.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/auth/credentials/credentials.c b/auth/credentials/credentials.c
index 7a4b081c61..e6a471064f 100644
--- a/auth/credentials/credentials.c
+++ b/auth/credentials/credentials.c
@@ -114,6 +114,17 @@ _PUBLIC_ struct cli_credentials *cli_credentials_init(TALLOC_CTX *mem_ctx)
return cred;
}
+_PUBLIC_ void cli_credentials_set_callback_data(struct cli_credentials *cred,
+ void *callback_data)
+{
+ cred->priv_data = callback_data;
+}
+
+_PUBLIC_ void *_cli_credentials_callback_data(struct cli_credentials *cred)
+{
+ return cred->priv_data;
+}
+
/**
* Create a new anonymous credential
* @param mem_ctx TALLOC_CTX parent for credentials structure