summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-08-29 09:32:25 +0200
committerAndrew Bartlett <abartlet@samba.org>2016-08-31 20:59:15 +0200
commit8abd9b5f079a87a368372bd5e8092830734059f7 (patch)
treea56c9b1dff8f95a035d082679f09c12457ef3b43 /lib
parent6d063dffb57d8607d1ac5b6ff8220ab451e18ec4 (diff)
downloadsamba-8abd9b5f079a87a368372bd5e8092830734059f7.tar.gz
krb5_wrap: Document smb_krb5_enctype_to_string()
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/krb5_wrap/krb5_samba.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c
index 7eeee75cbc9..a3fdee52946 100644
--- a/lib/krb5_wrap/krb5_samba.c
+++ b/lib/krb5_wrap/krb5_samba.c
@@ -937,7 +937,20 @@ krb5_error_code smb_krb5_kt_free_entry(krb5_context context,
}
-/* caller needs to free etype_s */
+/**
+ * @brief Convert an encryption type to a string.
+ *
+ * @param[in] context The library context.
+ *
+ * @param[in] enctype The encryption type.
+ *
+ * @param[in] etype_s A pointer to store the allocated encryption type as a
+ * string.
+ *
+ * @return 0 on success, a Kerberos error code otherwise.
+ *
+ * The caller needs to free the allocated string etype_s.
+ */
krb5_error_code smb_krb5_enctype_to_string(krb5_context context,
krb5_enctype enctype,
char **etype_s)