From 9fed7ed00eb74a82e822dca2c9f267fe0c47069f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 8 May 2014 14:59:00 +0200 Subject: lib/krb5_wrap: add krb5_copy_data_contents. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Andrew Bartlett --- lib/krb5_wrap/krb5_samba.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/krb5_wrap/krb5_samba.h') 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, -- cgit v1.2.1