summaryrefslogtreecommitdiff
path: root/lib/krb5_wrap/krb5_samba.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-05-08 14:59:00 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-08-08 06:02:35 +0200
commit9fed7ed00eb74a82e822dca2c9f267fe0c47069f (patch)
tree85b415f1f3b02c49971542defe4856b0e673abd7 /lib/krb5_wrap/krb5_samba.h
parent57b6517441ae66bab6cab211ee8843fe7143b296 (diff)
downloadsamba-9fed7ed00eb74a82e822dca2c9f267fe0c47069f.tar.gz
lib/krb5_wrap: add krb5_copy_data_contents.
This reuses krb5_data_copy() if available, choosed not to call it krb5_data_copy as that is easily mixed up with krb5_copy_data (which allocs the krb5_data pointer). Thanks Simo for proposing the better name. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/krb5_wrap/krb5_samba.h')
-rw-r--r--lib/krb5_wrap/krb5_samba.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h
index 5a3d20e1b8e..7835a3128fd 100644
--- a/lib/krb5_wrap/krb5_samba.h
+++ b/lib/krb5_wrap/krb5_samba.h
@@ -321,6 +321,10 @@ char *smb_krb5_principal_get_comp_string(TALLOC_CTX *mem_ctx,
krb5_const_principal principal,
unsigned int component);
+krb5_error_code krb5_copy_data_contents(krb5_data *p,
+ const void *data,
+ size_t len);
+
#endif /* HAVE_KRB5 */
int cli_krb5_get_ticket(TALLOC_CTX *mem_ctx,