krb5_wrap: Document smb_get_krb5_error_message()
authorAndreas Schneider <asn@samba.org>
Mon, 29 Aug 2016 15:24:41 +0000 (17:24 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Aug 2016 18:59:16 +0000 (20:59 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5_wrap/krb5_samba.c

index 1f680c43d0b89cabba6c14a5a89d801373e26782..11851846d0c43c8869b3dfc62f9aba2d9cc3c4c1 100644 (file)
@@ -2738,6 +2738,20 @@ char *smb_krb5_get_principal_from_service_hostname(TALLOC_CTX *mem_ctx,
        return principal;
 }
 
+/**
+ * @brief Get an error string from a Kerberos error code.
+ *
+ * @param[in]  context  The library context.
+ *
+ * @param[in]  code     The Kerberos error code.
+ *
+ * @param[in]  mem_ctx  The talloc context to allocate the error string on.
+ *
+ * @return A talloc'ed error string or NULL if an error occured.
+ *
+ * The caller must free the returned error string with talloc_free() if not
+ * needed anymore
+ */
 char *smb_get_krb5_error_message(krb5_context context,
                                 krb5_error_code code,
                                 TALLOC_CTX *mem_ctx)