From c5fa646b533cbb6ec238ce297ee9d1636b0afab3 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 29 Aug 2016 08:57:47 +0200 Subject: [PATCH] krb5_wrap: Document smb_krb5_gen_netbios_krb5_address() Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- lib/krb5_wrap/krb5_samba.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index 995ba5b357b..dde85f9e2b9 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -786,7 +786,18 @@ krb5_error_code smb_krb5_free_addresses(krb5_context context, } #define MAX_NETBIOSNAME_LEN 16 - krb5_error_code smb_krb5_gen_netbios_krb5_address(smb_krb5_addresses **kerb_addr, + +/** + * @brief Add a netbios name to the array of addresses + * + * @param[in] kerb_addr A pointer to the smb_krb5_addresses to add the + * netbios name to. + * + * @param[in] netbios_name The netbios name to add. + * + * @return 0 on success, a Kerberos error code otherwise. + */ +krb5_error_code smb_krb5_gen_netbios_krb5_address(smb_krb5_addresses **kerb_addr, const char *netbios_name) { krb5_error_code ret = 0;